com.stimulsoft.base.drawing
Class StiBrush
java.lang.Object
com.stimulsoft.base.drawing.StiBrush
- All Implemented Interfaces:
- IStiInvalidator, IStiSerializable, IStiSerializableToString, java.lang.Cloneable
- Direct Known Subclasses:
- StiEmptyBrush, StiGlareBrush, StiGlassBrush, StiGradientBrush, StiHatchBrush, StiSolidBrush
public abstract class StiBrush
- extends java.lang.Object
- implements java.lang.Cloneable, IStiInvalidator, IStiSerializable, IStiSerializableToString
Class describes a brush.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StiBrush
public StiBrush()
clone
public java.lang.Object clone()
- Creates a new object that is a copy of the current instance.
- Overrides:
clone
in class java.lang.Object
- Returns:
- A new object that is a copy of this instance.
getInvalidator
public final IStiInvalidator getInvalidator()
setInvalidator
public final void setInvalidator(IStiInvalidator value)
invalidate
public final void invalidate()
- Specified by:
invalidate
in interface IStiInvalidator
getBrush
public static StiBrush getBrush(StiBrush brush,
StiRectangle rect1)
- Returns the gdi brush from the report brush.
- Parameters:
brush
- Report brush.rect
- Rectangle for gradient.
- Returns:
- Gdi brush.
ToColor
public static StiColor ToColor(StiBrush brush)
- Transform a brush into a color.
- Parameters:
brush
- Brush for converting.
- Returns:
- Converted color.
setReference
public void setReference(int reference)
getReference
public int getReference()
dispose
public void dispose()
LoadFromJson
public static StiBrush LoadFromJson(JSONObject jObject)
throws JSONException
- Throws:
JSONException