Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
bc5db255
Commit
bc5db255
authored
6 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
JSdoc added
parent
7a91b72b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!295
Resolve "alternative to google maps api way of visualizing maps"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend-js/src/main/js/map/data/Alias.js
+141
-2
141 additions, 2 deletions
frontend-js/src/main/js/map/data/Alias.js
with
141 additions
and
2 deletions
frontend-js/src/main/js/map/data/Alias.js
+
141
−
2
View file @
bc5db255
...
@@ -9,7 +9,7 @@ var logger = require('../../logger');
...
@@ -9,7 +9,7 @@ var logger = require('../../logger');
/**
/**
* Class representing alias data.
* Class representing alias data.
*
*
* @param javaObject
* @param
{Alias|Object}
javaObject
* object de-serialized ajax query to the server side
* object de-serialized ajax query to the server side
*/
*/
function
Alias
(
javaObject
)
{
function
Alias
(
javaObject
)
{
...
@@ -45,7 +45,7 @@ Alias.prototype.constructor = Alias;
...
@@ -45,7 +45,7 @@ Alias.prototype.constructor = Alias;
* Updates alias with full data information. This function should be called when
* Updates alias with full data information. This function should be called when
* full information about alias is retrieved from server.
* full information about alias is retrieved from server.
*
*
* @param javaObject
* @param
{Alias|Object}
javaObject
* object representing data from server side
* object representing data from server side
*/
*/
Alias
.
prototype
.
update
=
function
(
javaObject
)
{
Alias
.
prototype
.
update
=
function
(
javaObject
)
{
...
@@ -123,139 +123,278 @@ Alias.prototype.update = function (javaObject) {
...
@@ -123,139 +123,278 @@ Alias.prototype.update = function (javaObject) {
}
}
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getCharge
=
function
()
{
Alias
.
prototype
.
getCharge
=
function
()
{
return
this
.
charge
;
return
this
.
charge
;
};
};
/**
*
* @param {number} charge
*/
Alias
.
prototype
.
setCharge
=
function
(
charge
)
{
Alias
.
prototype
.
setCharge
=
function
(
charge
)
{
this
.
charge
=
charge
;
this
.
charge
=
charge
;
};
};
/**
*
* @returns {boolean}
*/
Alias
.
prototype
.
getConstant
=
function
()
{
Alias
.
prototype
.
getConstant
=
function
()
{
return
this
.
_constant
;
return
this
.
_constant
;
};
};
/**
*
* @param {boolean} constant
*/
Alias
.
prototype
.
setConstant
=
function
(
constant
)
{
Alias
.
prototype
.
setConstant
=
function
(
constant
)
{
this
.
_constant
=
constant
;
this
.
_constant
=
constant
;
};
};
/**
*
* @returns {boolean}
*/
Alias
.
prototype
.
getBoundaryCondition
=
function
()
{
Alias
.
prototype
.
getBoundaryCondition
=
function
()
{
return
this
.
_boundaryCondition
;
return
this
.
_boundaryCondition
;
};
};
/**
*
* @param {boolean} boundaryCondition
*/
Alias
.
prototype
.
setBoundaryCondition
=
function
(
boundaryCondition
)
{
Alias
.
prototype
.
setBoundaryCondition
=
function
(
boundaryCondition
)
{
this
.
_boundaryCondition
=
boundaryCondition
;
this
.
_boundaryCondition
=
boundaryCondition
;
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getInitialAmount
=
function
()
{
Alias
.
prototype
.
getInitialAmount
=
function
()
{
return
this
.
_initialAmount
;
return
this
.
_initialAmount
;
};
};
/**
*
* @param {number} initialAmount
*/
Alias
.
prototype
.
setInitialAmount
=
function
(
initialAmount
)
{
Alias
.
prototype
.
setInitialAmount
=
function
(
initialAmount
)
{
this
.
_initialAmount
=
initialAmount
;
this
.
_initialAmount
=
initialAmount
;
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getInitialConcentration
=
function
()
{
Alias
.
prototype
.
getInitialConcentration
=
function
()
{
return
this
.
_initialConcentration
;
return
this
.
_initialConcentration
;
};
};
/**
*
* @param {number} initialConcentration
*/
Alias
.
prototype
.
setInitialConcentration
=
function
(
initialConcentration
)
{
Alias
.
prototype
.
setInitialConcentration
=
function
(
initialConcentration
)
{
this
.
_initialConcentration
=
initialConcentration
;
this
.
_initialConcentration
=
initialConcentration
;
};
};
/**
*
* @returns {string[]}
*/
Alias
.
prototype
.
getFormerSymbols
=
function
()
{
Alias
.
prototype
.
getFormerSymbols
=
function
()
{
return
this
.
formerSymbols
;
return
this
.
formerSymbols
;
};
};
/**
*
* @param {string[]} formerSymbols
*/
Alias
.
prototype
.
setFormerSymbols
=
function
(
formerSymbols
)
{
Alias
.
prototype
.
setFormerSymbols
=
function
(
formerSymbols
)
{
this
.
formerSymbols
=
formerSymbols
;
this
.
formerSymbols
=
formerSymbols
;
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getX
=
function
()
{
Alias
.
prototype
.
getX
=
function
()
{
return
this
.
x
;
return
this
.
x
;
};
};
/**
*
* @param {number} x
*/
Alias
.
prototype
.
setX
=
function
(
x
)
{
Alias
.
prototype
.
setX
=
function
(
x
)
{
if
(
x
!==
undefined
)
{
if
(
x
!==
undefined
)
{
this
.
x
=
x
;
this
.
x
=
x
;
}
}
};
};
/**
*
* @param {number} y
*/
Alias
.
prototype
.
setY
=
function
(
y
)
{
Alias
.
prototype
.
setY
=
function
(
y
)
{
if
(
y
!==
undefined
)
{
if
(
y
!==
undefined
)
{
this
.
y
=
y
;
this
.
y
=
y
;
}
}
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getY
=
function
()
{
Alias
.
prototype
.
getY
=
function
()
{
return
this
.
y
;
return
this
.
y
;
};
};
/**
*
* @param {number} elementId
*/
Alias
.
prototype
.
setElementId
=
function
(
elementId
)
{
Alias
.
prototype
.
setElementId
=
function
(
elementId
)
{
this
.
_elementId
=
elementId
;
this
.
_elementId
=
elementId
;
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getElementId
=
function
()
{
Alias
.
prototype
.
getElementId
=
function
()
{
return
this
.
_elementId
;
return
this
.
_elementId
;
};
};
/**
*
* @param {number} width
*/
Alias
.
prototype
.
setWidth
=
function
(
width
)
{
Alias
.
prototype
.
setWidth
=
function
(
width
)
{
if
(
width
!==
undefined
)
{
if
(
width
!==
undefined
)
{
this
.
width
=
width
;
this
.
width
=
width
;
}
}
};
};
/**
*
* @param {number} height
*/
Alias
.
prototype
.
setHeight
=
function
(
height
)
{
Alias
.
prototype
.
setHeight
=
function
(
height
)
{
if
(
height
!==
undefined
)
{
if
(
height
!==
undefined
)
{
this
.
height
=
height
;
this
.
height
=
height
;
}
}
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getWidth
=
function
()
{
Alias
.
prototype
.
getWidth
=
function
()
{
return
this
.
width
;
return
this
.
width
;
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getHeight
=
function
()
{
Alias
.
prototype
.
getHeight
=
function
()
{
return
this
.
height
;
return
this
.
height
;
};
};
/**
*
* @returns {string}
*/
Alias
.
prototype
.
getName
=
function
()
{
Alias
.
prototype
.
getName
=
function
()
{
return
this
.
name
;
return
this
.
name
;
};
};
/**
*
* @param {string} name
*/
Alias
.
prototype
.
setName
=
function
(
name
)
{
Alias
.
prototype
.
setName
=
function
(
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
};
};
/**
*
* @returns {string}
*/
Alias
.
prototype
.
getFullName
=
function
()
{
Alias
.
prototype
.
getFullName
=
function
()
{
return
this
.
fullName
;
return
this
.
fullName
;
};
};
/**
*
* @param {string} fullName
*/
Alias
.
prototype
.
setFullName
=
function
(
fullName
)
{
Alias
.
prototype
.
setFullName
=
function
(
fullName
)
{
this
.
fullName
=
fullName
;
this
.
fullName
=
fullName
;
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getCompartmentId
=
function
()
{
Alias
.
prototype
.
getCompartmentId
=
function
()
{
return
this
.
_compartmentId
;
return
this
.
_compartmentId
;
};
};
/**
*
* @param {number} compartmentId
*/
Alias
.
prototype
.
setCompartmentId
=
function
(
compartmentId
)
{
Alias
.
prototype
.
setCompartmentId
=
function
(
compartmentId
)
{
if
(
compartmentId
!==
null
)
{
if
(
compartmentId
!==
null
)
{
this
.
_compartmentId
=
compartmentId
;
this
.
_compartmentId
=
compartmentId
;
}
}
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getComplexId
=
function
()
{
Alias
.
prototype
.
getComplexId
=
function
()
{
return
this
.
_complexId
;
return
this
.
_complexId
;
};
};
/**
*
* @param {number} complexId
*/
Alias
.
prototype
.
setComplexId
=
function
(
complexId
)
{
Alias
.
prototype
.
setComplexId
=
function
(
complexId
)
{
if
(
complexId
!==
null
)
{
if
(
complexId
!==
null
)
{
this
.
_complexId
=
complexId
;
this
.
_complexId
=
complexId
;
}
}
};
};
/**
*
* @returns {number}
*/
Alias
.
prototype
.
getTransparencyLevel
=
function
()
{
Alias
.
prototype
.
getTransparencyLevel
=
function
()
{
return
this
.
_transparencyLevel
;
return
this
.
_transparencyLevel
;
};
};
/**
*
* @param {number} transparencyLevel
*/
Alias
.
prototype
.
setTransparencyLevel
=
function
(
transparencyLevel
)
{
Alias
.
prototype
.
setTransparencyLevel
=
function
(
transparencyLevel
)
{
this
.
_transparencyLevel
=
transparencyLevel
;
this
.
_transparencyLevel
=
transparencyLevel
;
};
};
/**
*
* @returns {Point}
*/
Alias
.
prototype
.
getCenter
=
function
()
{
Alias
.
prototype
.
getCenter
=
function
()
{
return
new
Point
(
this
.
getX
()
+
this
.
getWidth
()
/
2
,
this
.
getY
()
+
this
.
getHeight
()
/
2
);
return
new
Point
(
this
.
getX
()
+
this
.
getWidth
()
/
2
,
this
.
getY
()
+
this
.
getHeight
()
/
2
);
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment