Package snap.gfx
Class Borders.EdgeBorder
java.lang.Object
snap.props.PropObject
snap.gfx.Border
snap.gfx.Borders.LineBorder
snap.gfx.Borders.EdgeBorder
- All Implemented Interfaces:
Cloneable
,PropChange.DoChange
,XMLArchiver.Archivable
- Enclosing class:
- Borders
This Border subclass strokes the rectangular border of a given shape, with option include/exclude
individual sides.
-
Field Summary
Fields inherited from class snap.gfx.Border
Color_Prop, Insets_Prop, PaintAbove_Prop, Stroke_Prop
Fields inherited from class snap.props.PropObject
_pcs, EMPTY_OBJECT
-
Constructor Summary
ConstructorDescriptionConstructor.EdgeBorder
(boolean showTop, boolean showRight, boolean showBottom, boolean showLeft) Constructor for edges. -
Method Summary
Modifier and TypeMethodDescriptioncopyForShowEdge
(Pos aPos, boolean aValue) Returns a duplicate stroke with new ShowTop.boolean
Standard equals implementation.fromXML
(XMLArchiver anArchiver, XMLElement anElement) XML unarchival.boolean
Returns whether to show all borders.boolean
Returns whether to show bottom border.boolean
Returns whether to show left border.boolean
Returns whether to show right border.boolean
Returns whether to show top border.void
Paint border.toXML
(XMLArchiver anArchiver) XML archival.Methods inherited from class snap.gfx.Borders.LineBorder
clone, copyForColor, copyForStroke, copyForStrokeWidth, createInsets, getColor, getStroke, getWidth, toString
Methods inherited from class snap.gfx.Border
blackBorder, copyFor, copyForInsets, createLineBorder, createLoweredBevelBorder, emptyBorder, getInsets, getName, getPropValue, initProps, isPaintAbove, of, setPropValue
Methods inherited from class snap.props.PropObject
addDeepChangeListener, addPropChangeListener, addPropChangeListener, firePropChange, firePropChange, firePropChange, getPropDefault, getPropForName, getPropParent, getPropSet, getPropsForArchival, getPropsForArchivalExtra, getPropsString, isPropDefault, processPropChange, removeDeepChangeListener, removePropChangeListener, removePropChangeListener, setPropsString, setPropValues, toStringProps
-
Constructor Details
-
EdgeBorder
public EdgeBorder()Constructor. -
EdgeBorder
public EdgeBorder(boolean showTop, boolean showRight, boolean showBottom, boolean showLeft) Constructor for edges.
-
-
Method Details
-
isShowLeft
public boolean isShowLeft()Returns whether to show left border. -
isShowRight
public boolean isShowRight()Returns whether to show right border. -
isShowTop
public boolean isShowTop()Returns whether to show top border. -
isShowBottom
public boolean isShowBottom()Returns whether to show bottom border. -
isShowAll
public boolean isShowAll()Returns whether to show all borders. -
paint
Paint border.- Overrides:
paint
in classBorders.LineBorder
-
copyForShowEdge
Returns a duplicate stroke with new ShowTop. -
equals
Standard equals implementation.- Overrides:
equals
in classBorders.LineBorder
-
toXML
XML archival.- Specified by:
toXML
in interfaceXMLArchiver.Archivable
- Overrides:
toXML
in classBorders.LineBorder
-
fromXML
XML unarchival.- Specified by:
fromXML
in interfaceXMLArchiver.Archivable
- Overrides:
fromXML
in classBorders.LineBorder
-