Package com.anylogic.engine.presentation
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.presentation.Shape3D
- Methods inherited from class com.anylogic.engine.presentation.Shape
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Methods inherited from interface com.anylogic.engine.Locatable2D
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.presentation.Shape
- com.anylogic.engine.presentation.Shape3D
- com.anylogic.engine.presentation.ShapeLineFill
- All Implemented Interfaces:
com.anylogic.engine.internal.Child
,Locatable2D
,Locatable3D
,AggregatableAnimationElement
,HasLevel
,LevelElement
,SVGElement
,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
Constructor | Description |
---|---|
ShapeLineFill() |
Modifier and Type | Method | Description |
---|---|---|
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
|
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. |
void | postSVGShapeSpecificAttributes |
Posts general properties specific to a particular shape class.
|
void | setContextReference_xjal |
Deprecated.
|
void | setFillColor |
Sets the fill color of the shape.
|
void | setFillColor |
Sets the fill color (or
Texture ) of the shape. |
void | setLineColor |
Sets the line color of the shape.
|
void | setLineColor |
Sets the line color (or
Texture ) of the shape. |
void | setLineStyle |
Sets the line style of the shape:
{LINE_STYLE_SOLID, LINE_STYLE_DOTTED or LINE_STYLE_DASHED} |
void | setLineWidth |
Sets the line width of the shape
|
void | setZHeight |
Sets the height of the shape along Z-axis
|
canHandleClick, getDrawMode, getScaleZ, getZ, setDrawMode, setPos, setPos, setPos, setRotation, setScale, setScale, setScaleZ, setZ
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
public ShapeLineFill()
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
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
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
public Texture getLineTexture()
Returns the line texture of the shape, if the shape has line texture
- Returns:
- the line texture of the shape
public void setFillColor(Color fillColor)
Sets the fill color of the shape.
- Parameters:
fillColor
- the new fill color, null = do not fill the shape
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
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
public Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
- Returns:
- the fill texture of the shape
public void setLineWidth(double width)
Sets the line width of the shape
- Parameters:
width
- the new line width of the shape
public double getLineWidth()
Returns the line width of the shape.
- Returns:
- the line width of the shape
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
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
public void setZHeight(double zHeight)
Sets the height of the shape along Z-axis
- Parameters:
zHeight
- the new value of z-height
public double getZHeight()
Returns the height of the shape along Z-axis
- Returns:
- the height of the shape along Z-axis
public double getZOffset()
Description copied from interface:
Locatable3D
Returns the offset from z coordinate of the location base.
This e.g. returns
This e.g. returns
getZHeight()
for
some 3D shapes- Specified by:
getZOffset
in interfaceLocatable3D
- Overrides:
getZOffset
in classShape3D
- Returns:
- the offset from z coordinate of the location
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 classShape
- Parameters:
att
- attribute namesval
- attribute valuespublicOnly
- TODO
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 classShape
- Returns:
- the Presentable that owns this shape, or null
@AnyLogicInternalAPI @Deprecated public void setContextReference_xjal(Presentable contextReference)
Deprecated.