Package com.anylogic.engine.presentation
- java.lang.Object
- com.anylogic.engine.presentation.Texture
- All Implemented Interfaces:
Paint
,Transparency
,Serializable
public class Texture extends Object implements Paint, Serializable
Objects of this class may be used to define the appearance of shapes' parts.
Additionally to the color, this class supports textures.
Example:
Texture
may be used in the shapes instead of Color
.Additionally to the color, this class supports textures.
Example:
UtilitiesColor.brickRedTexture
- texture with red bricks,
may be used as a fill for a rectangle:rectangle.setFillColor(brickRedTexture);
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Modifier and Type | Method | Description |
---|---|---|
PaintContext | createContext |
Deprecated.
this method will be removed in future releases.
|
boolean | equals | |
Color | getAmbientColor() |
Deprecated.
this method will be removed in future releases.
|
Color | getDiffuseColor() |
Deprecated.
this method will be removed in future releases.
|
String | getName() |
Returns internal name of the texture
|
Paint | getPaint_xjal() |
Deprecated.
this method will be removed in future releases.
|
Color | getSpecularColor() |
Deprecated.
this method will be removed in future releases.
|
int | getTransparency() |
Deprecated.
this method will be removed in future releases.
|
int | hashCode() | |
String | toString() |
public String getName()
Returns internal name of the texture
- Returns:
- internal name of the texture
public String toString()
@Deprecated public Color getAmbientColor()
Deprecated.
this method will be removed in future releases.
@Deprecated public Color getDiffuseColor()
Deprecated.
this method will be removed in future releases.
@Deprecated public Color getSpecularColor()
Deprecated.
this method will be removed in future releases.
@Deprecated public Paint getPaint_xjal()
Deprecated.
this method will be removed in future releases.
@Deprecated public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
Deprecated.
this method will be removed in future releases.
- Specified by:
createContext
in interfacePaint
@Deprecated public int getTransparency()
Deprecated.
this method will be removed in future releases.
- Specified by:
getTransparency
in interfaceTransparency
public int hashCode()
public boolean equals(Object obj)