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

Field Summary

Fields inherited from interface java.awt.Transparency

BITMASK, OPAQUE, TRANSLUCENT

Method Summary

Modifier and TypeMethodDescription
PaintContextcreateContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
Deprecated.
this method will be removed in future releases.
booleanequals(Object obj) 
ColorgetAmbientColor()
Deprecated.
this method will be removed in future releases.
ColorgetDiffuseColor()
Deprecated.
this method will be removed in future releases.
StringgetName()
Returns internal name of the texture
PaintgetPaint_xjal()
Deprecated.
this method will be removed in future releases.
ColorgetSpecularColor()
Deprecated.
this method will be removed in future releases.
intgetTransparency()
Deprecated.
this method will be removed in future releases.
inthashCode() 
StringtoString() 

Methods inherited from class java.lang.Object

getClass, notify, notifyAll, wait, wait, wait

Method Details

getName

public String getName()
Returns internal name of the texture
Returns:
internal name of the texture

toString

public String toString()
Overrides:
toString in class Object

getAmbientColor

@Deprecated
public Color getAmbientColor()
Deprecated.
this method will be removed in future releases.

getDiffuseColor

@Deprecated
public Color getDiffuseColor()
Deprecated.
this method will be removed in future releases.

getSpecularColor

@Deprecated
public Color getSpecularColor()
Deprecated.
this method will be removed in future releases.

getPaint_xjal

@Deprecated
public Paint getPaint_xjal()
Deprecated.
this method will be removed in future releases.

createContext

@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 interface Paint

getTransparency

@Deprecated
public int getTransparency()
Deprecated.
this method will be removed in future releases.
Specified by:
getTransparency in interface Transparency

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object