Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.AbstractLevelMarkup
- Methods inherited from class com.anylogic.engine.markup.MarkupShape
- Methods inherited from class com.anylogic.engine.markup.AbstractMarkup
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.AbstractLevelMarkup
- com.anylogic.engine.markup.AbstractFluidMarkup<DS>
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,LevelElement
,LevelMarkup
,SVGElement
,UsdElement
,Serializable
- Direct Known Subclasses:
BulkConveyorBelt
,Pipe
,StorageTank
public abstract class AbstractFluidMarkup<DS> extends AbstractLevelMarkup
- See Also:
- Serialized Form
Constructor | Description |
---|---|
AbstractFluidMarkup() | |
AbstractFluidMarkup |
Modifier and Type | Method | Description |
---|---|---|
Color | getColor() |
Returns the color of the markup element, or
null if markup element has no color or
has textured (in this case getTexture() should be used instead) |
DS | getDataSource() | |
Texture | getTexture() |
Returns the texture of the markup element, if it has texture
|
void | setColor |
Sets the color of the markup element.
|
void | setColor |
Sets the color (or
Texture ) of the markup element. |
void | setDataSource |
contains, error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getOrGenerateUSDId, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
public AbstractFluidMarkup()
public AbstractFluidMarkup(Agent owner, ShapeDrawMode drawMode, boolean isPublic, Paint color)
public void setColor(Color color)
Sets the color of the markup element.
- Parameters:
color
- the new color, null = do not draw the markup element
public void setColor(Paint color)
Sets the color (or
Texture
) of the markup element.- Parameters:
color
- the new color, null = do not draw the markup element
public Color getColor()
Returns the color of the markup element, or
null
if markup element has no color or
has textured (in this case getTexture()
should be used instead)- Returns:
- the color of the markup element
public Texture getTexture()
Returns the texture of the markup element, if it has texture
- Returns:
- the texture of the markup element
@AnyLogicInternalAPI public void setDataSource(DS dataSource)
public DS getDataSource()