|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.figures.FigureAttributes
public class FigureAttributes
A container for a figure's attributes. The attributes are stored as key/value pairs.
Figure
,
Serialized FormConstructor Summary | |
---|---|
FigureAttributes()
Constructs the FigureAttributes. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones the attributes. |
java.lang.Object |
get(FigureAttributeConstant attributeConstant)
Gets the attribute with the given name. |
boolean |
hasDefined(FigureAttributeConstant attributeConstant)
Tests if an attribute is defined. |
void |
read(StorableInput dr)
Reads the attributes from a StorableInput. |
static java.awt.Color |
readColor(StorableInput dr)
|
void |
set(FigureAttributeConstant attributeConstant,
java.lang.Object value)
Sets the attribute with the given name and overwrites its previous value. |
void |
write(StorableOutput dw)
Writes the attributes to a StorableInput. |
static void |
writeColor(StorableOutput dw,
java.lang.String colorName,
java.awt.Color color)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FigureAttributes()
Method Detail |
---|
public java.lang.Object get(FigureAttributeConstant attributeConstant)
public void set(FigureAttributeConstant attributeConstant, java.lang.Object value)
public boolean hasDefined(FigureAttributeConstant attributeConstant)
public java.lang.Object clone()
clone
in class java.lang.Object
public void read(StorableInput dr) throws java.io.IOException
java.io.IOException
Storable
,
write(org.jhotdraw.util.StorableOutput)
public void write(StorableOutput dw)
Storable
,
write(org.jhotdraw.util.StorableOutput)
public static void writeColor(StorableOutput dw, java.lang.String colorName, java.awt.Color color)
public static java.awt.Color readColor(StorableInput dr) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |