public abstract class GISMarkupElement extends AbstractMarkup implements INetworkMarkupElement, java.io.Serializable
GISNetwork
.
GIS map is able to draw GIS markup element in geographic coordinate system (latitude, longitude).Modifier and Type | Method and Description |
---|---|
abstract com.bbn.openmap.omGraphics.OMGraphic |
createOMGraphicObject() |
void |
discardOwner() |
java.lang.RuntimeException |
error(java.lang.String errorText) |
static GISMarkupElement |
getFromOMGraphic(com.bbn.openmap.omGraphics.OMGraphic omGraphic) |
java.awt.Color |
getLineColor()
Returns the line color of the markup element, or
null if markup element has no line color or
has textured line (in this case getLineTexture() should be used instead) |
LineStyle |
getLineStyle()
Returns the line style of the markup element:
{LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED} |
Texture |
getLineTexture()
Returns the line texture of the markup element, if the markup element has line texture
|
double |
getLineWidth()
Returns the line width of the markup element.
|
INetwork<GISNode,GISRoute> |
getNetwork() |
com.bbn.openmap.omGraphics.OMGraphic |
getOmGraphic(boolean createIfNull)
Deprecated.
|
Agent |
getSpace()
Returns the agent where the markup element is defined
|
void |
initialize()
Prepares the object after setting parameters/adding segments.
|
void |
onAggregatorVisibilityChanged()
This method is internal and shouldn't be called by user.
|
void |
remove()
Removes the markup element from the presentation, if it is not a part of the
presentation, does nothing.
|
void |
setLineColor(java.awt.Paint lineColor)
Sets the line color (or
Texture ) of the markup element. |
void |
setLineStyle(LineStyle lineStyle)
Sets the line style of the markup element:
{LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED} |
void |
setLineWidth(double width)
Sets the line width of the markup element, 0 means thinnest possible
|
void |
setOwner(ShapeGISMap map)
Sets GIS map this element belongs to.
|
void |
setVisible(boolean v)
Sets the visibility of the markup element.
|
executeUserAction, findSVGElement, getDrawMode, getName, getSVGId, initializeInternal, isPublic, isVisible, onAggregatorInitialized, removeSVGFromOwner, resetSVGState, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getNearestPoint, randomPointInside, randomPointInside, randomPointInside, randomPointInside
postInitialize
public INetwork<GISNode,GISRoute> getNetwork()
getNetwork
in interface INetworkMarkupElement
null
if this element isn't a part of a networkpublic java.lang.RuntimeException error(java.lang.String errorText)
error
in class AbstractMarkup
@AnyLogicInternalAPI public void discardOwner()
discardOwner
in class AbstractMarkup
public void setOwner(ShapeGISMap map)
map
- the GIS map objectpublic void initialize()
public void setVisible(boolean v)
AbstractMarkup
setVisible
in class AbstractMarkup
v
- visibility: true
- visible, false
- not@AnyLogicInternalAPI public void onAggregatorVisibilityChanged()
AggregatableAnimationElement
onAggregatorVisibilityChanged
in interface AggregatableAnimationElement
onAggregatorVisibilityChanged
in class AbstractMarkup
public Agent getSpace()
AbstractMarkup
getSpace
in interface INetworkMarkupElement
getSpace
in class AbstractMarkup
public void remove()
AbstractMarkup
remove
in class AbstractMarkup
public void setLineColor(java.awt.Paint lineColor)
Texture
) of the markup element.lineColor
- the new line color, null = do not draw the markup element linepublic java.awt.Color getLineColor()
null
if markup element has no line color or
has textured line (in this case getLineTexture()
should be used instead)public Texture getLineTexture()
public double getLineWidth()
public void setLineWidth(double width)
width
- the new line width of the markup elementpublic void setLineStyle(LineStyle lineStyle)
{LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}
lineStyle
- the new style of the markup elementpublic LineStyle getLineStyle()
{LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}
@Deprecated @AnyLogicInternalAPI public com.bbn.openmap.omGraphics.OMGraphic getOmGraphic(boolean createIfNull)
@AnyLogicInternalAPI public abstract com.bbn.openmap.omGraphics.OMGraphic createOMGraphicObject()
@AnyLogicInternalAPI public static GISMarkupElement getFromOMGraphic(com.bbn.openmap.omGraphics.OMGraphic omGraphic)
Copyright © AnyLogic North America, LLC. All Rights Reserved.