Package com.stimulsoft.base.drawing
Class StiAdvancedBorder
java.lang.Object
com.stimulsoft.base.drawing.StiBorder
com.stimulsoft.base.drawing.StiAdvancedBorder
- All Implemented Interfaces:
IStiDefault,IStiSerializable,IStiSerializableToString,Cloneable
Class describes a multi-border.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of the StiAdvancedBorder class.StiAdvancedBorder(StiBorderSide topSide, StiBorderSide bottomSide, StiBorderSide leftSide, StiBorderSide rightSide, boolean dropShadow, double shadowSize, StiBrush shadowBrush) Creates a new instance of the StiAdvancedBorder class.StiAdvancedBorder(StiBorderSide topSide, StiBorderSide bottomSide, StiBorderSide leftSide, StiBorderSide rightSide, boolean dropShadow, double shadowSize, StiBrush shadowBrush, boolean topmost) Creates a new instance of the StiAdvancedBorder class.StiAdvancedBorder(StiColor topSideColor, double topSideSize, StiPenStyle topSideStyle, StiColor bottomSideColor, double bottomSideSize, StiPenStyle bottomSideStyle, StiColor leftSideColor, double leftSideSize, StiPenStyle leftSideStyle, StiColor rightSideColor, double rightSideSize, StiPenStyle rightSideStyle, boolean dropShadow, double shadowSize, StiBrush shadowBrush) Creates a new instance of the StiAdvancedBorder class.StiAdvancedBorder(StiColor topSideColor, double topSideSize, StiPenStyle topSideStyle, StiColor bottomSideColor, double bottomSideSize, StiPenStyle bottomSideStyle, StiColor leftSideColor, double leftSideSize, StiPenStyle leftSideStyle, StiColor rightSideColor, double rightSideSize, StiPenStyle rightSideStyle, boolean dropShadow, double shadowSize, StiBrush shadowBrush, boolean topmost) Creates a new instance of the StiAdvancedBorder class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a copy of the current instance.voiddeserialize(String strObject) booleanGets or sets frame of bottom side.getColor()Gets or sets a border color.Gets or sets frame of left side.Gets or sets frame of right side.getSide()Gets or sets frame borders.doublegetSize()Gets or sets a border size.getStyle()Gets or sets a border style.Gets or sets frame of top side.inthashCode()booleanGets value which indicates that all sides of border is present.booleanGets value which indicates that bottom side of border is present.booleanGets value indicates, that this object-frame is by default.booleanGets value which indicates that left side of border is present.booleanGets value which indicates that right side of border is present.booleanGets value which indicates that top side of border is present.voidvoidsetSide(StiBorderSides value) voidsetSize(double value) voidsetStyle(StiPenStyle value) Methods inherited from class com.stimulsoft.base.drawing.StiBorder
draw, getDropShadow, getShadowBrush, getShadowSize, getSizeOffset, getTopmost, isDefault, LoadFromJson, setDropShadow, setShadowBrush, setShadowSize, setSide, setTopmost
-
Constructor Details
-
StiAdvancedBorder
public StiAdvancedBorder()Creates a new instance of the StiAdvancedBorder class. -
StiAdvancedBorder
public StiAdvancedBorder(StiColor topSideColor, double topSideSize, StiPenStyle topSideStyle, StiColor bottomSideColor, double bottomSideSize, StiPenStyle bottomSideStyle, StiColor leftSideColor, double leftSideSize, StiPenStyle leftSideStyle, StiColor rightSideColor, double rightSideSize, StiPenStyle rightSideStyle, boolean dropShadow, double shadowSize, StiBrush shadowBrush) Creates a new instance of the StiAdvancedBorder class. -
StiAdvancedBorder
public StiAdvancedBorder(StiColor topSideColor, double topSideSize, StiPenStyle topSideStyle, StiColor bottomSideColor, double bottomSideSize, StiPenStyle bottomSideStyle, StiColor leftSideColor, double leftSideSize, StiPenStyle leftSideStyle, StiColor rightSideColor, double rightSideSize, StiPenStyle rightSideStyle, boolean dropShadow, double shadowSize, StiBrush shadowBrush, boolean topmost) Creates a new instance of the StiAdvancedBorder class. -
StiAdvancedBorder
public StiAdvancedBorder(StiBorderSide topSide, StiBorderSide bottomSide, StiBorderSide leftSide, StiBorderSide rightSide, boolean dropShadow, double shadowSize, StiBrush shadowBrush) Creates a new instance of the StiAdvancedBorder class.- Parameters:
topSide- Top side of border.bottomSide- Bottom side of border.leftSide- Left side of border.rightSide- Right side of border.dropShadow- Drop shadow or not.shadowSize- Shadow siz.shadowBrush- Brush for drawing shadow of border.
-
StiAdvancedBorder
public StiAdvancedBorder(StiBorderSide topSide, StiBorderSide bottomSide, StiBorderSide leftSide, StiBorderSide rightSide, boolean dropShadow, double shadowSize, StiBrush shadowBrush, boolean topmost) Creates a new instance of the StiAdvancedBorder class.- Parameters:
topSide- Top side of border.bottomSide- Bottom side of border.leftSide- Left side of border.rightSide- Right side of border.dropShadow- Drop shadow or not.shadowSize- Shadow siz.shadowBrush- Brush for drawing shadow of border.topmost- Value which indicates that border sides will be drawn on top of all components.
-
-
Method Details
-
clone
Creates a new object that is a copy of the current instance. -
hashCode
public int hashCode() -
equals
-
getLeftSide
Gets or sets frame of left side. -
getRightSide
Gets or sets frame of right side. -
getTopSide
Gets or sets frame of top side. -
getBottomSide
Gets or sets frame of bottom side. -
isTopBorderSidePresent
public boolean isTopBorderSidePresent()Gets value which indicates that top side of border is present.- Overrides:
isTopBorderSidePresentin classStiBorder
-
isBottomBorderSidePresent
public boolean isBottomBorderSidePresent()Gets value which indicates that bottom side of border is present.- Overrides:
isBottomBorderSidePresentin classStiBorder
-
isLeftBorderSidePresent
public boolean isLeftBorderSidePresent()Gets value which indicates that left side of border is present.- Overrides:
isLeftBorderSidePresentin classStiBorder
-
isRightBorderSidePresent
public boolean isRightBorderSidePresent()Gets value which indicates that right side of border is present.- Overrides:
isRightBorderSidePresentin classStiBorder
-
isAllBorderSidesPresent
public boolean isAllBorderSidesPresent()Gets value which indicates that all sides of border is present.- Overrides:
isAllBorderSidesPresentin classStiBorder
-
getSide
Gets or sets frame borders. Not used in StiAdvancedBorder. -
setSide
-
getColor
Gets or sets a border color. Not used in StiAdvancedBorder. -
setColor
-
getSize
public double getSize()Gets or sets a border size. Not used in StiAdvancedBorder. -
setSize
public void setSize(double value) -
getStyle
Gets or sets a border style. Not used in StiAdvancedBorder. -
setStyle
-
isDefault
public boolean isDefault()Gets value indicates, that this object-frame is by default.- Specified by:
isDefaultin interfaceIStiDefault- Overrides:
isDefaultin classStiBorder
-
serialize
- Specified by:
serializein interfaceIStiSerializableToString- Overrides:
serializein classStiBorder
-
deserialize
- Specified by:
deserializein interfaceIStiSerializableToString- Overrides:
deserializein classStiBorder
-