Constructor and Description |
---|
PaintableClipShape(java.awt.Shape shape,
boolean reset)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(PaintableVisitor visitor)
Accept a visitor.
|
java.awt.Shape |
getShape()
Get the clip shape.
|
boolean |
isReset()
Is this resetting the clip?
|
void |
paintTo(java.awt.Graphics2D g2,
Context context)
Paint this object to the given graphics context.
|
public PaintableClipShape(@Nullable java.awt.Shape shape, boolean reset)
shape
- clip shapereset
- reset the clip?public void paintTo(@NotNull java.awt.Graphics2D g2, @NotNull Context context)
Paintable
public void accept(@NotNull PaintableVisitor visitor)
Paintable
@Nullable public java.awt.Shape getShape()
public boolean isReset()
true
: if this resets the clipping by using Graphics.setClip(Shape)
false
; if this changing the current clipping by using Graphics2D.clip(java.awt.Shape)