|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectatt.grappa.GrappaStyle
public class GrappaStyle
This class translates and encapsulates information provided by the style attribute.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_SET_STRING
A style attribute with this string value gets set to the default style for the associated element type. |
static int |
STYLE_CAP_BUTT
Integer value for indicating butt cap info. |
static int |
STYLE_CAP_DEFAULT
Line cap default. |
static int |
STYLE_CAP_ROUND
Integer value for indicating round cap info. |
static int |
STYLE_CAP_SQUARE
Integer value for indicating square cap info. |
static int |
STYLE_DASH
Integer value for indicating specific dashed line info. |
static float[] |
STYLE_DASH_DEFAULT
Line dash default. |
static int |
STYLE_DASH_PHASE
Integer value for indicating dash phase info for a dashed line. |
static float |
STYLE_DASH_PHASE_DEFAULT
Line dash phase default. |
static int |
STYLE_DASHED
Integer value for indicating dashed line info. |
static int |
STYLE_DIAGONALS
Integer value for indicating diagonal corner info. |
static boolean |
STYLE_DIAGONALS_DEFAULT
Diagonal corner default. |
static int |
STYLE_DOTTED
Integer value for indicating dotted line info. |
static int |
STYLE_FILLED
Integer value for indicating fill info. |
static boolean |
STYLE_FILLED_DEFAULT
Fill default. |
static int |
STYLE_FIXED_SIZE
Integer value for indicating fixed size info. |
static boolean |
STYLE_FIXED_SIZE_DEFAULT
Fixed size default. |
static int |
STYLE_INVIS
Integer value for indicating fill info. |
static boolean |
STYLE_INVIS_DEFAULT
Invisibility default. |
static int |
STYLE_JOIN_BEVEL
Integer value for indicating bevel join info. |
static int |
STYLE_JOIN_DEFAULT
Line join default. |
static int |
STYLE_JOIN_MITER
Integer value for indicating miter join info. |
static int |
STYLE_JOIN_ROUND
Integer value for indicating round miter info. |
static int |
STYLE_LINE_COLOR
Integer value for indicating line color info. |
static java.awt.Color |
STYLE_LINE_COLOR_DEFAULT
Line color default. |
static int |
STYLE_LINE_STYLE_DEFAULT
Line style default. |
static int |
STYLE_LINE_WIDTH
Integer value for indicating line width info. |
static float |
STYLE_LINE_WIDTH_DEFAULT
Line width default. |
static int |
STYLE_MITER_LIMIT
Integer value for indicating miter limit info. |
static float |
STYLE_MITER_LIMIT_DEFAULT
Line miter default. |
static int |
STYLE_OLD_BOLD
Integer value for indicating bold font info (should use fontstyle) |
static int |
STYLE_OLD_ITALIC
Integer value for indicating italic font info (should use fontstyle) |
static int |
STYLE_OLD_PLAIN
Integer value for indicating plain font info (should use fontstyle) |
static int |
STYLE_ROUNDED
Integer value for indicating rounded corner info. |
static boolean |
STYLE_ROUNDED_DEFAULT
Rounded corner default. |
static int |
STYLE_SOLID
Integer value for indicating solid line info. |
| Constructor Summary | |
|---|---|
GrappaStyle(int type,
java.lang.String style)
Constructs a new GrappaStyle object from a style
description string. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a new object of the same class as this object. |
int |
getCapStyle()
Get the cap style. |
float[] |
getDash()
Get the dash specification. |
float |
getDashPhase()
Get the dash phase. |
boolean |
getDiagonals()
Get the diagonal corner specification. |
boolean |
getFilled()
Get the fill specification. |
boolean |
getFixedSize()
Get the fixed size specification. |
int |
getFontStyle()
Get the font style. |
boolean |
getInvis()
Get the invisibility specification. |
int |
getJoinStyle()
Get the join style. |
java.awt.Color |
getLineColor()
Get the line color. |
int |
getLineStyle()
Get the line style. |
float |
getLineWidth()
Get the line width. |
float |
getMiterLimit()
Get the miter limit. |
boolean |
getRounded()
Get the rounded corner specification. |
java.lang.String |
toAttributeString()
Provides a string representation of this object consistent with Grappa attributes. |
java.lang.String |
toString()
Provides a generic string representation of this object. |
void |
updateStyle(java.lang.String style)
Update this GrappaStyle based on the supplied style string. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_SET_STRING
public static final int STYLE_SOLID
public static final int STYLE_DASHED
public static final int STYLE_DOTTED
public static final int STYLE_DASH
public static final int STYLE_DASH_PHASE
public static final int STYLE_LINE_WIDTH
public static final int STYLE_LINE_COLOR
public static final int STYLE_FILLED
public static final int STYLE_DIAGONALS
public static final int STYLE_ROUNDED
public static final int STYLE_CAP_BUTT
public static final int STYLE_CAP_ROUND
public static final int STYLE_CAP_SQUARE
public static final int STYLE_JOIN_BEVEL
public static final int STYLE_JOIN_MITER
public static final int STYLE_JOIN_ROUND
public static final int STYLE_MITER_LIMIT
public static final int STYLE_FIXED_SIZE
public static final int STYLE_INVIS
public static final int STYLE_OLD_BOLD
public static final int STYLE_OLD_ITALIC
public static final int STYLE_OLD_PLAIN
public static final java.awt.Color STYLE_LINE_COLOR_DEFAULT
public static final int STYLE_LINE_STYLE_DEFAULT
public static final float STYLE_LINE_WIDTH_DEFAULT
public static final int STYLE_CAP_DEFAULT
public static final int STYLE_JOIN_DEFAULT
public static final float STYLE_MITER_LIMIT_DEFAULT
public static final float[] STYLE_DASH_DEFAULT
public static final float STYLE_DASH_PHASE_DEFAULT
public static final boolean STYLE_ROUNDED_DEFAULT
public static final boolean STYLE_DIAGONALS_DEFAULT
public static final boolean STYLE_FILLED_DEFAULT
public static final boolean STYLE_INVIS_DEFAULT
public static final boolean STYLE_FIXED_SIZE_DEFAULT
| Constructor Detail |
|---|
public GrappaStyle(int type,
java.lang.String style)
GrappaStyle object from a style
description string.
type - element type to associate with this style.style - the String that specifies the style info.
format is: style1,style2(extra2),...,styleN.| Method Detail |
|---|
public void updateStyle(java.lang.String style)
style - a style specificationpublic java.lang.String toAttributeString()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.awt.Color getLineColor()
public int getLineStyle()
public float getLineWidth()
public int getCapStyle()
public int getJoinStyle()
public float getMiterLimit()
public float[] getDash()
public float getDashPhase()
public boolean getRounded()
public boolean getDiagonals()
public boolean getFilled()
public boolean getInvis()
public boolean getFixedSize()
public int getFontStyle()
public java.lang.Object clone()
clone in class java.lang.Objectjava.lang.OutOfMemoryError - if there is not enough memory.Cloneable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||