Package com.stimulsoft.base.drawing
Class StiHatchBrush
java.lang.Object
com.stimulsoft.base.drawing.StiBrush
com.stimulsoft.base.drawing.StiHatchBrush
- All Implemented Interfaces:
IStiInvalidator,IStiSerializable,IStiSerializableToString,Cloneable
Class describes the HatchBrush.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the StiHatchBrush class.StiHatchBrush(StiHatchStyle style, StiColorEnum foreColor, StiColorEnum backColor) StiHatchBrush(StiHatchStyle style, StiColor foreColor, StiColor backColor) Creates a new instance of the StiHatchBrush class. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(String value) booleanfinal StiColorGets the color of spaces between the hatch lines drawn by this StiHatchBrush object.final StiColorGets the color of hatch lines drawn by this StiHatchBrush object.getPaint()final StiHatchStylegetStyle()Gets the hatch style of this StiHatchBrush object.inthashCode()voidLoadValuesFromJson(JSONObject jObject) final voidsetBackColor(StiColor value) final voidsetForeColor(StiColor value) final voidsetStyle(StiHatchStyle value) Methods inherited from class com.stimulsoft.base.drawing.StiBrush
clone, dispose, getBrush, getInvalidator, getReference, invalidate, light, LoadFromJson, setInvalidator, setReference, ToColor
-
Constructor Details
-
StiHatchBrush
public StiHatchBrush()Creates a new instance of the StiHatchBrush class. -
StiHatchBrush
Creates a new instance of the StiHatchBrush class.- Parameters:
style- Hatch style of this StiHatchBrush object.foreColor- The color of hatch lines drawn by this StiHatchBrush object.backColor- The color of spaces between the hatch lines drawn by this StiHatchBrush object.
-
StiHatchBrush
-
-
Method Details
-
getBackColor
Gets the color of spaces between the hatch lines drawn by this StiHatchBrush object. -
setBackColor
-
serialize
-
deserialize
-
getForeColor
Gets the color of hatch lines drawn by this StiHatchBrush object. -
setForeColor
-
getStyle
Gets the hatch style of this StiHatchBrush object. -
setStyle
-
hashCode
public int hashCode() -
equals
-
getPaint
- Returns:
- the image
-
LoadValuesFromJson
- Throws:
JSONException
-