AnyLogic
Expand
Font size
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

Field Summary

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

ID_NOT_SET

Constructor Summary

ConstructorDescription
AbstractFluidMarkup() 
AbstractFluidMarkup(Agent owner, ShapeDrawMode drawMode, boolean isPublic, Paint color) 

Method Summary

Modifier and TypeMethodDescription
ColorgetColor()
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)
DSgetDataSource() 
TexturegetTexture()
Returns the texture of the markup element, if it has texture
voidsetColor(Color color)
Sets the color of the markup element.
voidsetColor(Paint color)
Sets the color (or Texture) of the markup element.
voidsetDataSource(DS dataSource) 

Methods inherited from class com.anylogic.engine.markup.AbstractLevelMarkup

getDrawMode, getLevel, setLevel

Methods inherited from class com.anylogic.engine.markup.MarkupShape

contains, error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner

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, onAggregatorVisibilityChanged, postInitialize

Constructor Details

AbstractFluidMarkup

public AbstractFluidMarkup()

AbstractFluidMarkup

public AbstractFluidMarkup(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic,
 Paint color)

Method Details

setColor

public void setColor(Color color)
Sets the color of the markup element.
Parameters:
color - the new color, null = do not draw the markup element

setColor

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

getColor

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

getTexture

public Texture getTexture()
Returns the texture of the markup element, if it has texture
Returns:
the texture of the markup element

setDataSource

@AnyLogicInternalAPI
public void setDataSource(DS dataSource)

getDataSource

public DS getDataSource()