java.lang.Object
omix.lang.Texture
- All Implemented Interfaces:
Serializable
,Brush
,Paint
public final class Texture extends Object implements Brush, Serializable
This class represents textures in the network diagram.
A texture consists of an image and a scaling and centering method.
- Author:
- Dr. Peter Droste, Omix Visualization
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Texture.Scaling
This enum lists all avaliable scaling methods. -
Constructor Summary
Constructors Constructor Description Texture(Image image)
The same as Texture(image, Scaling.Scale, true)Texture(Image image, boolean centered)
The same as Texture(image, Scaling.Scale, centered)Texture(Image image, Texture.Scaling scaling)
The same as Texture(image, scaling, true)Texture(Image image, Texture.Scaling scaling, boolean centered)
creates a new texture from image with the specified scaling and centering -
Method Summary
Modifier and Type Method Description Texture
clone()
boolean
equals(Object obj)
Image
getImage()
Texture.Scaling
getScaling()
int
hashCode()
boolean
isCentered()
-
Constructor Details
-
Texture
The same as Texture(image, scaling, true)- Parameters:
image
- imagescaling
- scaling
-
Texture
The same as Texture(image, Scaling.Scale, true)- Parameters:
image
- image
-
Texture
The same as Texture(image, Scaling.Scale, centered)- Parameters:
image
- imagecentered
- centered
-
Texture
@ConstructorProperties({"image","scaling","centered"}) public Texture(Image image, Texture.Scaling scaling, boolean centered)creates a new texture from image with the specified scaling and centering- Parameters:
image
- imagescaling
- scalingcentered
- centered
-
-
Method Details
-
clone
-
getImage
- Returns:
- the image
-
getScaling
- Returns:
- the scaling
-
isCentered
public boolean isCentered()- Returns:
- the centered
-
hashCode
public int hashCode() -
equals
-