Class GraphicsState
java.lang.Object
de.erichseifert.vectorgraphics2d.GraphicsState
- All Implemented Interfaces:
Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ColorDefault background color.static final ShapeDefault clipping shape.static final ColorDefault color.static final CompositeDefault composite mode.static final FontDefault font.static final ColorDefault paint.static final StrokeDefault stroke.static final AffineTransformDefault transformation.static final ColorDefault XOR mode. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetClip()getColor()getFont()getHints()getPaint()booleanvoidsetBackground(Color background) voidvoidvoidsetComposite(Composite composite) voidvoidvoidvoidvoidsetXorMode(Color xorMode) transformShape(Shape shape) untransformShape(Shape shape)
-
Field Details
-
DEFAULT_BACKGROUND
Default background color. -
DEFAULT_COLOR
Default color. -
DEFAULT_CLIP
Default clipping shape. -
DEFAULT_COMPOSITE
Default composite mode. -
DEFAULT_FONT
Default font. -
DEFAULT_PAINT
Default paint. -
DEFAULT_STROKE
Default stroke. -
DEFAULT_TRANSFORM
Default transformation. -
DEFAULT_XOR_MODE
Default XOR mode.
-
-
Constructor Details
-
GraphicsState
public GraphicsState()
-
-
Method Details
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
transformShape
-
untransformShape
-
getHints
-
getBackground
-
setBackground
-
getColor
-
setColor
-
getClip
-
setClip
-
getComposite
-
setComposite
-
getFont
-
setFont
-
getPaint
-
setPaint
-
getStroke
-
setStroke
-
getTransform
-
setTransform
-
getXorMode
-
setXorMode
-
equals
-
isDefault
public boolean isDefault()
-