AnyLogic AnyLogic
Expand
Font size
All Implemented Interfaces:
com.anylogic.engine.internal.Child, Locatable2D, Locatable3D, AggregatableAnimationElement, HasLevel, LevelElement, SVGElement, java.io.Serializable, java.lang.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

Constructor Summary

Constructors 
ShapeLineFill()  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods 
java.awt.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)
Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
java.awt.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)
LineStyle getLineStyle()
Returns the line style of the shape: {LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}
Texture getLineTexture()
Returns the line texture of the shape, if the shape has line texture
double getLineWidth()
Returns the line width of the shape.
Presentable getPresentable()
Returns the Presentable object (Agent or Experiment) where this shape belongs to, or null.
double getZHeight()
Returns the height of the shape along Z-axis
double getZOffset()
Returns the offset from z coordinate of the location base.
This e.g. returns getZHeight() for some 3D shapes
void postSVGShapeSpecificAttributes​(java.util.List<java.lang.String> att, java.util.List<java.lang.String> val, boolean publicOnly)
Posts general properties specific to a particular shape class.
void setContextReference_xjal​(Presentable contextReference)
Deprecated.
void setFillColor​(java.awt.Color fillColor)
Sets the fill color of the shape.
void setFillColor​(java.awt.Paint fillColor)
Sets the fill color (or Texture) of the shape.
void setLineColor​(java.awt.Color lineColor)
Sets the line color of the shape.
void setLineColor​(java.awt.Paint lineColor)
Sets the line color (or Texture) of the shape.
void setLineStyle​(LineStyle lineStyle)
Sets the line style of the shape: {LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED}
void setLineWidth​(double width)
Sets the line width of the shape
void setZHeight​(double zHeight)
Sets the height of the shape along Z-axis
Modifier and Type Method Description

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 com.anylogic.engine.presentation.Shape

clone, contains, executeUserAction, findSVGElement, getGroup, getLevel, getName, getRotation, getScaleX, getScaleY, getSVGId, getX, getY, isJava2DSwingPresentation, isPublic_xjal, isSVGPresentation, isVisible, onAggregatorVisibilityChanged, onClick, randomPointInside, randomPointInside, removeSVGFromOwner, removeSVGImage, resetSVGState, restoreOwner, setLevel, setPublic_xjal, setScale, setScaleX, setScaleY, setVisible, setX, setY, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties

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 Detail

ShapeLineFill

public ShapeLineFill()

Method Detail

setLineColor

public void setLineColor​(java.awt.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​(java.awt.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 java.awt.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​(java.awt.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​(java.awt.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 java.awt.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​(java.util.List<java.lang.String> att,
                                           java.util.List<java.lang.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.
How can we improve this article?