AnyLogic
Expand
Font size
All Known Implementing Classes:
AbstractFluidMarkup, AbstractLevelMarkup, AbstractMarkup, AbstractRailwayMarkup, AbstractRoadConnectableElement, AbstractRoadMarkup, AbstractRoadPart, AbstractRoadSidePart, AbstractShapedWall, AbstractShapeGISMap, AbstractWall, AreaNode, BarChart, BulkConveyorBelt, BusStop, Chart, Chart1D, Chart1DSum, Chart2D, Chart2DPlot, CircularWall, ConveyorCustomStation, ConveyorMarkupElement, ConveyorNode, ConveyorPath, ConveyorPathPart, ConveyorPointNode, ConveyorPortImpl, ConveyorSimpleStation, ConveyorSpur, ConveyorStation, ConveyorTransferTable, ConveyorTransitionalNode, ConveyorTurnStation, ConveyorTurntable, Crane, DensityMap, EscalatorGroup, GISMarkupElement, GISNode, GISPoint, GISRegion, GISRoute, Histogram, Histogram2D, Intersection, JibCrane, LevelGate, Lift, LiftPortImpl, Light3D, Light3D.CarHeadlight, Light3D.Daylight, Light3D.Moonlight, Light3D.StreetLight, Light3DAmbient, Light3DDirectional, Light3DPoint, Light3DSpot, MarkupShape, NetworkMarkupElement, NetworkPortImpl, Node, OverheadCrane, OverheadCraneBridge, PalletRack, ParkingLot, Path, Pathway, PedFlowStatistics, PieChart, Pipe, Plot, PointNode, PolygonalNode, PositionOnConveyor, PositionOnTrack, QueueArea, RailwaySwitch, RailwayTrack, RectangularNode, RectangularWall, ReplicatedShape, Road, ServiceBase, ServiceWArea, ServiceWLine, Shape, Shape3D, Shape3DGroup, Shape3DObject, ShapeAgentGroup_xjal, ShapeAgentPopulationGroup, ShapeArc, ShapeArrowLine, ShapeButton, ShapeCAD, ShapeCanvas, ShapeCheckBox, ShapeComboBox, ShapeControl, ShapeCurve, ShapeEmbeddedObjectIcon, ShapeEmbeddedObjectPresentation, ShapeFileChooser, ShapeGISMap, ShapeGroup, ShapeImage, ShapeInputControl, ShapeInspect, ShapeLine, ShapeLineFill, ShapeListBox, ShapeModelElementsGroup, ShapeModelPrimitives, ShapeMultiplePoints, ShapeOval, ShapePolyLine, ShapeProgressBar, ShapeRadioButtonGroup, ShapeRectangle, ShapeRoundedRectangle, ShapeScale, ShapeSlider, ShapeSVG, ShapeText, ShapeTextField, ShapeTopLevelPresentationGroup, ShapeWindow3D, StackChart, StopLine, Storage, StorageTank, TargetLine, TimeColorChart, TimePlot, TimeStackChart, Wall

@AnyLogicInternalAPI
public interface SVGElement
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.

Method Summary

All Methods Instance Methods Abstract Methods 
void executeUserAction​(java.lang.String value)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
SVGElement findSVGElement​(long svgId)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
long getSVGId()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
void removeSVGFromOwner​(Shape oldOwner)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
void resetSVGState()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
SVGElement updateSVGProperties​(java.util.List<SVGCommand> output, ShapeDrawMode drawMode, boolean publicOnly, SVGElement owner, SVGElement elbehind)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Updates SVG properties of the element that are then sent to the rendering client.
Modifier and Type Method Description

Method Detail

getSVGId

@AnyLogicInternalAPI
long getSVGId()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

updateSVGProperties

@AnyLogicInternalAPI
SVGElement updateSVGProperties​(java.util.List<SVGCommand> output,
                               ShapeDrawMode drawMode,
                               boolean publicOnly,
                               SVGElement owner,
                               SVGElement elbehind)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Updates SVG properties of the element that are then sent to the rendering client. If the element is not yet in the SVG scene, generates "C" command, if it is there, but some properties are out of date, generates "U" command. If SVG drawing of this element is not needed because of public only settings, or permanently not needed, or not supported yet, returns false and does nothing.
Parameters:
output - the list of commands to add to
drawMode - TODO
publicOnly - drawing context: if true, only shapes that are marked as public only are updated
owner - the SVG element that serves as a container for this element
elbehind - the SVG element behind this one, or null if none or if order is irrelevant
Returns:
the actual owner this element has been added to or null if element is not drawn (e.g. drawing of this element is not needed because of public only settings, permanently not needed or not supported - hence SVG id is not set). The actual owner may differ from the given owner when the svg element is added to a different place (e.g. GIS map).

resetSVGState

@AnyLogicInternalAPI
void resetSVGState()
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

findSVGElement

@AnyLogicInternalAPI
SVGElement findSVGElement​(long svgId)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

executeUserAction

@AnyLogicInternalAPI
void executeUserAction​(java.lang.String value)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.

removeSVGFromOwner

@AnyLogicInternalAPI
void removeSVGFromOwner​(Shape oldOwner)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
How can we improve this article?