|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.vajhoej.model.graphic.config.GraphicConfig
public class GraphicConfig
Class GraphicConfig contains a single graphical configuration.
| Field Summary | |
|---|---|
static java.awt.Color |
PASTEL_BLUE
|
static java.awt.Color |
PASTEL_GREEN
|
static java.awt.Color |
PASTEL_LAVENDER
|
static java.awt.Color |
PASTEL_RED
|
static java.awt.Color |
PASTEL_YELLOW
|
static java.awt.Color |
WHITE_LIGHT_GRAY
|
| Constructor Summary | |
|---|---|
GraphicConfig()
Create instance of GraphicConfig. |
|
GraphicConfig(int margin,
int thickness,
java.awt.Font font,
java.awt.Color textColor,
java.awt.Color lineColor,
java.awt.Color fillColor)
Create instance of GraphicConfig. |
|
GraphicConfig(int margin,
int thickness,
java.awt.Font font,
java.awt.Color textColor,
java.awt.Color lineColor,
java.awt.Color fillColor,
boolean round)
Create instance of GraphicConfig. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
NameValuePairList |
getAttributes()
Get all single value fields. |
java.util.List<java.util.List<Persistable>> |
getChildren()
Get all multi value fields. |
java.awt.Color |
getFillColor()
Get fill color. |
java.awt.Font |
getFont()
Get text font. |
java.lang.String |
getId()
Get id identifying object. |
java.awt.Color |
getLineColor()
Get line color. |
int |
getMargin()
Get margin. |
java.awt.Color |
getTextColor()
Get text color. |
int |
getThickness()
Get line thickness. |
java.lang.String |
getType()
Get type (XML element name / database table name not Java class name). |
GraphicConfig |
gray()
Gray out. |
boolean |
isRound()
Is round corners. |
void |
setAttributes(NameValuePairList attr)
Set all single value fields. |
void |
setChildren(java.util.List<java.util.List<Persistable>> childs)
Set all multi value fields. |
void |
setFillColor(java.awt.Color fillColor)
Set fill color. |
void |
setFont(java.awt.Font font)
Set text font. |
void |
setLineColor(java.awt.Color lineColor)
Set line color. |
void |
setMargin(int margin)
Set margin. |
void |
setRound(boolean round)
Set round corners. |
void |
setTextColor(java.awt.Color textColor)
Set text color. |
void |
setThickness(int thickness)
Set line thickness. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.awt.Color PASTEL_YELLOW
public static final java.awt.Color PASTEL_GREEN
public static final java.awt.Color PASTEL_BLUE
public static final java.awt.Color PASTEL_LAVENDER
public static final java.awt.Color PASTEL_RED
public static final java.awt.Color WHITE_LIGHT_GRAY
| Constructor Detail |
|---|
public GraphicConfig()
public GraphicConfig(int margin,
int thickness,
java.awt.Font font,
java.awt.Color textColor,
java.awt.Color lineColor,
java.awt.Color fillColor)
margin - marginthickness - line thicknessfont - text fonttextColor - text colorlineColor - line colorfillColor - fill color
public GraphicConfig(int margin,
int thickness,
java.awt.Font font,
java.awt.Color textColor,
java.awt.Color lineColor,
java.awt.Color fillColor,
boolean round)
margin - marginthickness - line thicknessfont - text fonttextColor - text colorlineColor - line colorfillColor - fill colorround - round corners| Method Detail |
|---|
public int getMargin()
public void setMargin(int margin)
margin - marginpublic int getThickness()
public void setThickness(int thickness)
thickness - line thicknesspublic java.awt.Font getFont()
public void setFont(java.awt.Font font)
font - text fontpublic java.awt.Color getTextColor()
public void setTextColor(java.awt.Color textColor)
textColor - text colorpublic java.awt.Color getLineColor()
public void setLineColor(java.awt.Color lineColor)
lineColor - line colorpublic java.awt.Color getFillColor()
public void setFillColor(java.awt.Color fillColor)
fillColor - fill colorpublic boolean isRound()
public void setRound(boolean round)
round - round cornerspublic GraphicConfig gray()
public java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String getId()
Persistable
getId in interface Persistablepublic java.lang.String getType()
Persistable
getType in interface Persistablepublic NameValuePairList getAttributes()
Persistable
getAttributes in interface Persistablepublic java.util.List<java.util.List<Persistable>> getChildren()
Persistable
getChildren in interface Persistable
public void setAttributes(NameValuePairList attr)
throws ModelException
Persistable
setAttributes in interface Persistableattr - value pair list
ModelException - if problems
public void setChildren(java.util.List<java.util.List<Persistable>> childs)
throws ModelException
Persistable
setChildren in interface Persistablechilds - list of list of persistable objects
ModelException - if problemspublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||