AnyLogic
Expand
Font size
All Implemented Interfaces:
com.anylogic.engine.internal.Child, Locatable2D, Locatable3D, AggregatableAnimationElement, HasLevel, LevelElement, SVGElement, UsdElement, Serializable, Cloneable
Direct Known Subclasses:
ShapeMultiplePoints, ShapeOval, ShapeRectangle

public abstract class ShapeLineFill
extends Shape3D
An intermediate base class - for all shapes that have line and fill.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Field Summary

Fields inherited from class com.anylogic.engine.presentation.Shape3D

UNKNOWN_NAME

Fields inherited from interface com.anylogic.engine.presentation.UsdElement

ID_NOT_SET

Constructor Summary

ConstructorDescription
ShapeLineFill() 

Method Summary

Modifier and TypeMethodDescription
ColorgetFillColor()
Returns the fill color of the shape, or null if shape has no fill color or has textured fill (in this case getFillTexture() should be used instead)
TexturegetFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
ColorgetLineColor()
Returns the line color of the shape, or null if shape has no line color or has textured line (in this case getLineTexture() should be used instead)
LineStylegetLineStyle()
Returns the line style of the shape: {LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}
TexturegetLineTexture()
Returns the line texture of the shape, if the shape has line texture
doublegetLineWidth()
Returns the line width of the shape.
PresentablegetPresentable()
Returns the Presentable object (Agent or Experiment) where this shape belongs to, or null.
doublegetZHeight()
Returns the height of the shape along Z-axis
doublegetZOffset()
Returns the offset from z coordinate of the location base.
This e.g.
voidpostSVGShapeSpecificAttributes(List<String> att, List<String> val, boolean publicOnly)
Posts general properties specific to a particular shape class.
voidsetContextReference_xjal(Presentable contextReference)
Deprecated.
voidsetFillColor(Color fillColor)
Sets the fill color of the shape.
voidsetFillColor(Paint fillColor)
Sets the fill color (or Texture) of the shape.
voidsetLineColor(Color lineColor)
Sets the line color of the shape.
voidsetLineColor(Paint lineColor)
Sets the line color (or Texture) of the shape.
voidsetLineStyle(LineStyle lineStyle)
Sets the line style of the shape: {LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}
voidsetLineWidth(double width)
Sets the line width of the shape
voidsetZHeight(double zHeight)
Sets the height of the shape along Z-axis

Methods inherited from class com.anylogic.engine.presentation.Shape3D

canHandleClick, getDrawMode, getScaleZ, getZ, setDrawMode, setPos, setPos, setPos, setRotation, setScale, setScale, setScaleZ, setZ

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement

initializeInternal, postInitialize

Methods inherited from interface com.anylogic.engine.Locatable2D

getX, getY

Constructor Details

ShapeLineFill

public ShapeLineFill()

Method Details

setLineColor

public void setLineColor(Color lineColor)
Sets the line color of the shape.
Parameters:
lineColor - the new line color, null = do not draw the shape line

setLineColor

public void setLineColor(Paint lineColor)
Sets the line color (or Texture) of the shape.
Parameters:
lineColor - the new line color, null = do not draw the shape line

getLineColor

public Color getLineColor()
Returns the line color of the shape, or null if shape has no line color or has textured line (in this case getLineTexture() should be used instead)
Returns:
the line color of the shape

getLineTexture

public Texture getLineTexture()
Returns the line texture of the shape, if the shape has line texture
Returns:
the line texture of the shape

setFillColor

public void setFillColor(Color fillColor)
Sets the fill color of the shape.
Parameters:
fillColor - the new fill color, null = do not fill the shape

setFillColor

public void setFillColor(Paint fillColor)
Sets the fill color (or Texture) of the shape.
Parameters:
fillColor - the new fill color, null = do not fill the shape

getFillColor

public Color getFillColor()
Returns the fill color of the shape, or null if shape has no fill color or has textured fill (in this case getFillTexture() should be used instead)
Returns:
the fill color of the shape

getFillTexture

public Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
Returns:
the fill texture of the shape

setLineWidth

public void setLineWidth(double width)
Sets the line width of the shape
Parameters:
width - the new line width of the shape

getLineWidth

public double getLineWidth()
Returns the line width of the shape.
Returns:
the line width of the shape

setLineStyle

public void setLineStyle(LineStyle lineStyle)
Sets the line style of the shape: {LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}
Parameters:
lineStyle - the new style of the shape

getLineStyle

public LineStyle getLineStyle()
Returns the line style of the shape: {LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}
Returns:
the line style of the shape

setZHeight

public void setZHeight(double zHeight)
Sets the height of the shape along Z-axis
Parameters:
zHeight - the new value of z-height

getZHeight

public double getZHeight()
Returns the height of the shape along Z-axis
Returns:
the height of the shape along Z-axis

getZOffset

public double getZOffset()
Description copied from interface: Locatable3D
Returns the offset from z coordinate of the location base.
This e.g. returns getZHeight() for some 3D shapes
Specified by:
getZOffset in interface Locatable3D
Overrides:
getZOffset in class Shape3D
Returns:
the offset from z coordinate of the location

postSVGShapeSpecificAttributes

public void postSVGShapeSpecificAttributes(List<String> att,
 List<String> val,
 boolean publicOnly)
Description copied from class: Shape
Posts general properties specific to a particular shape class. Is triggered by SVG_DIRTY_SHAPE flag. Made public for occasional posting of additional SVG properties from outside engine (e.g. from libraries)
Overrides:
postSVGShapeSpecificAttributes in class Shape
Parameters:
att - attribute names
val - attribute values
publicOnly - TODO

getPresentable

public Presentable getPresentable()
Description copied from class: Shape
Returns the Presentable object (Agent or Experiment) where this shape belongs to, or null.
Overrides:
getPresentable in class Shape
Returns:
the Presentable that owns this shape, or null

setContextReference_xjal

@AnyLogicInternalAPI
@Deprecated
public void setContextReference_xjal(Presentable contextReference)
Deprecated.