Package snap.gfx
Class Borders.BevelBorder
java.lang.Object
snap.props.PropObject
snap.gfx.Border
snap.gfx.Borders.BevelBorder
- All Implemented Interfaces:
Cloneable
,PropChange.DoChange
,XMLArchiver.Archivable
- Enclosing class:
- Borders
A subclass for bevel border.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected Insets
Creates the insets.boolean
Standard equals implementation.fromXML
(XMLArchiver anArchiver, XMLElement anElement) XML Unarchival.int
getType()
Returns the type.int
hashCode()
void
Paint border.toXML
(XMLArchiver anArchiver) XML Archival.Methods inherited from class snap.gfx.Border
blackBorder, clone, copyFor, copyForColor, copyForInsets, copyForStroke, copyForStrokeWidth, createLineBorder, createLoweredBevelBorder, emptyBorder, getColor, getInsets, getName, getPropValue, getStroke, getWidth, 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, toString, toStringProps
-
Field Details
-
LOWERED
public static final int LOWERED- See Also:
-
RAISED
public static final int RAISED- See Also:
-
-
Constructor Details
-
BevelBorder
public BevelBorder()Creates new border. -
BevelBorder
public BevelBorder(int aType) Creates new border.
-
-
Method Details
-
getType
public int getType()Returns the type. -
createInsets
Creates the insets.- Overrides:
createInsets
in classBorder
-
paint
Paint border. -
toXML
XML Archival.- Specified by:
toXML
in interfaceXMLArchiver.Archivable
- Overrides:
toXML
in classBorder
-
fromXML
XML Unarchival.- Specified by:
fromXML
in interfaceXMLArchiver.Archivable
- Overrides:
fromXML
in classBorder
-
equals
Description copied from class:Border
Standard equals implementation. -
hashCode
public int hashCode()
-