com.stimulsoft.base.drawing
Class StiAdvancedBorder

java.lang.Object
  extended by com.stimulsoft.base.drawing.StiBorder
      extended by com.stimulsoft.base.drawing.StiAdvancedBorder
All Implemented Interfaces:
IStiDefault, IStiSerializable, IStiSerializableToString, java.lang.Cloneable

public class StiAdvancedBorder
extends StiBorder

Class describes a multi-border.


Field Summary
 
Fields inherited from class com.stimulsoft.base.drawing.StiBorder
side
 
Constructor Summary
StiAdvancedBorder()
          Creates 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
 java.lang.Object clone()
          Creates a new object that is a copy of the current instance.
 void deserialize(java.lang.String strObject)
          Десериализация объекта из строки.
 boolean equals(java.lang.Object obj)
           
 StiBorderSide getBottomSide()
          Gets or sets frame of bottom side.
 StiColor getColor()
          Gets or sets a border color.
 StiBorderSide getLeftSide()
          Gets or sets frame of left side.
 StiBorderSide getRightSide()
          Gets or sets frame of right side.
 StiEnumSet<StiBorderSides> getSide()
          Gets or sets frame borders.
 double getSize()
          Gets or sets a border size.
 StiPenStyle getStyle()
          Gets or sets a border style.
 StiBorderSide getTopSide()
          Gets or sets frame of top side.
 int hashCode()
           
 boolean isAllBorderSidesPresent()
          Gets value which indicates that all sides of border is present.
 boolean isBottomBorderSidePresent()
          Gets value which indicates that bottom side of border is present.
 boolean isDefault()
          Gets value indicates, that this object-frame is by default.
 boolean isLeftBorderSidePresent()
          Gets value which indicates that left side of border is present.
 boolean isRightBorderSidePresent()
          Gets value which indicates that right side of border is present.
 boolean isTopBorderSidePresent()
          Gets value which indicates that top side of border is present.
 java.lang.String serialize()
          Сериализация объекта в строку.
 void setColor(StiColor value)
           
 void setSide(StiBorderSides value)
           
 void setSize(double value)
           
 void setStyle(StiPenStyle value)
           
 
Methods inherited from class com.stimulsoft.base.drawing.StiBorder
draw, getDropShadow, getShadowBrush, getShadowSize, getSizeOffset, getTopmost, isDefault, LoadFromJson, setDropShadow, setShadowBrush, setShadowSize, setSide, setTopmost
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

clone

public java.lang.Object clone()
Creates a new object that is a copy of the current instance.

Overrides:
clone in class StiBorder
Returns:
A new object that is a copy of this instance.

hashCode

public int hashCode()
Overrides:
hashCode in class StiBorder

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class StiBorder

getLeftSide

public StiBorderSide getLeftSide()
Gets or sets frame of left side.


getRightSide

public StiBorderSide getRightSide()
Gets or sets frame of right side.


getTopSide

public StiBorderSide getTopSide()
Gets or sets frame of top side.


getBottomSide

public StiBorderSide getBottomSide()
Gets or sets frame of bottom side.


isTopBorderSidePresent

public boolean isTopBorderSidePresent()
Gets value which indicates that top side of border is present.

Overrides:
isTopBorderSidePresent in class StiBorder

isBottomBorderSidePresent

public boolean isBottomBorderSidePresent()
Gets value which indicates that bottom side of border is present.

Overrides:
isBottomBorderSidePresent in class StiBorder

isLeftBorderSidePresent

public boolean isLeftBorderSidePresent()
Gets value which indicates that left side of border is present.

Overrides:
isLeftBorderSidePresent in class StiBorder

isRightBorderSidePresent

public boolean isRightBorderSidePresent()
Gets value which indicates that right side of border is present.

Overrides:
isRightBorderSidePresent in class StiBorder

isAllBorderSidesPresent

public boolean isAllBorderSidesPresent()
Gets value which indicates that all sides of border is present.

Overrides:
isAllBorderSidesPresent in class StiBorder

getSide

public StiEnumSet<StiBorderSides> getSide()
Gets or sets frame borders. Not used in StiAdvancedBorder.

Overrides:
getSide in class StiBorder

setSide

public void setSide(StiBorderSides value)
Overrides:
setSide in class StiBorder

getColor

public StiColor getColor()
Gets or sets a border color. Not used in StiAdvancedBorder.

Overrides:
getColor in class StiBorder

setColor

public void setColor(StiColor value)
Overrides:
setColor in class StiBorder

getSize

public double getSize()
Gets or sets a border size. Not used in StiAdvancedBorder.

Overrides:
getSize in class StiBorder

setSize

public void setSize(double value)
Overrides:
setSize in class StiBorder

getStyle

public StiPenStyle getStyle()
Gets or sets a border style. Not used in StiAdvancedBorder.

Overrides:
getStyle in class StiBorder

setStyle

public void setStyle(StiPenStyle value)
Overrides:
setStyle in class StiBorder

isDefault

public boolean isDefault()
Gets value indicates, that this object-frame is by default.

Specified by:
isDefault in interface IStiDefault
Overrides:
isDefault in class StiBorder

serialize

public java.lang.String serialize()
Description copied from interface: IStiSerializableToString
Сериализация объекта в строку.

Specified by:
serialize in interface IStiSerializableToString
Overrides:
serialize in class StiBorder
Returns:
строковое представление объекта

deserialize

public void deserialize(java.lang.String strObject)
Description copied from interface: IStiSerializableToString
Десериализация объекта из строки. Все свойства объекта устанавливаются за счет распарсивания строки.

Specified by:
deserialize in interface IStiSerializableToString
Overrides:
deserialize in class StiBorder