|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpicedt.graphic.model.StyleConstants
Utility class to get or set attributes in a type-safe manner
PicObjectConstants
Field Summary |
Constructor Summary | |
StyleConstants()
|
Method Summary | |
static double |
getArrowGlobalScaleLength(PicAttributeSet set)
Returns the scale-factor for the arrow length |
static double |
getArrowGlobalScaleWidth(PicAttributeSet set)
Returns the scale-factor for the arrow width |
static double |
getArrowInsetScale(PicAttributeSet set)
Returns the arrow inset scale-factor (actual inset = ARROW_INSET * actual length) |
static double |
getArrowLengthScale(PicAttributeSet set)
Returns the arrow length scale-factor (actual length (or height) = actual width * ARROW_LENGTH) |
static double |
getArrowWidthLineWidthScale(PicAttributeSet set)
Returns the linewidth scale-factor for the arrow width (width = line-width-scale * line-width + minimum_size) |
static double |
getArrowWidthMinimumMm(PicAttributeSet set)
Returns the relative size for arrows (width = linewidth-scale * line-width + minimum_size) |
static double |
getBracketLengthScale(PicAttributeSet set)
Returns the bracket length scale-factor (actual length (or height) = actual width * BRACKET_LENGTH) |
static double |
getDashOpaque(PicAttributeSet set)
Return the opaque dash length , guaranteed to be positive. |
static double |
getDashTransparent(PicAttributeSet set)
Return the transparent dash length , guaranteed to be positive. |
static String |
getDimen(PicAttributeSet set)
Return a String (OUTER, MIDDLE or INNER) indicating whether the dimensions of boxes, circles,... |
static double |
getDotSep(PicAttributeSet set)
Return the dot separation, guaranteed to be positive. |
static Color |
getDoubleLineColor(PicAttributeSet set)
Return the double-line colour |
static double |
getDoubleLineSep(PicAttributeSet set)
Return the DoubleLine separation, guaranteed to be positive. |
static Color |
getFillColor(PicAttributeSet set)
Return the fill colour |
static String |
getFillStyle(PicAttributeSet set)
Return the fill style |
static double |
getHatchAngle(PicAttributeSet set)
Return the hatch angle, guaranteed to be b/w -90 and 90. |
static Color |
getHatchColor(PicAttributeSet set)
Return the hatch colour |
static double |
getHatchSep(PicAttributeSet set)
Return the distance b/w hatches, guaranteed to be positive |
static double |
getHatchWidth(PicAttributeSet set)
Return the hatch width, guaranteed to be positive |
static Arrow |
getLeftArrow(PicAttributeSet set)
Return the left arrow |
static Color |
getLineColor(PicAttributeSet set)
Return the stroke color |
static String |
getLineStyle(PicAttributeSet set)
Return the line style |
static double |
getLineWidth(PicAttributeSet set)
Return the line width, guaranteed to be positive. |
static Color |
getOverStrikeColor(PicAttributeSet set)
Return the border color |
static double |
getOverStrikeWidth(PicAttributeSet set)
Return the overstrike width, guaranteed to be positive. |
static double |
getPolydotsAngle(PicAttributeSet set)
Returns the factor by which dots are to be rotated (in degrees and CCW) |
static double |
getPolydotsHorizontalScale(PicAttributeSet set)
Returns the factor by which dots are to be scaled horizontally |
static double |
getPolydotsSizeLineWidthScale(PicAttributeSet set)
Returns the line-width scale for polygon dots (size = linewidth-scale * line-width + minimum_size) |
static double |
getPolydotsSizeMinimumMm(PicAttributeSet set)
Returns the minimum size of polygon dots (size = linewidth-scale * line-width + minimum_size) |
static String |
getPolydotsStyle(PicAttributeSet set)
Returns the style of polygon dots |
static double |
getPolydotsVerticalScale(PicAttributeSet set)
Returns the factor by which dots are to be scaled vertically |
static String |
getPstCustom(PicAttributeSet set)
Return the pst custom parameters |
static Arrow |
getRightArrow(PicAttributeSet set)
Return the right arrow |
static double |
getRoundedBracketLengthScale(PicAttributeSet set)
Returns the rounded-bracket length scale-factor (actual length (or height) = actual width * BRACKET_LENGTH) |
static double |
getShadowAngle(PicAttributeSet set)
Return the shadow angle, guaranteed to lie b/w -180 and 180 |
static Color |
getShadowColor(PicAttributeSet set)
Return the shadow colour |
static double |
getShadowSize(PicAttributeSet set)
Return the shadow size , guaranteed to be positive. |
static double |
getTBarWidthLineWidthScale(PicAttributeSet set)
Returns the linewidth-scale for T-bars (width = linewidth-scale * line-width + relative_width) |
static double |
getTBarWidthMinimumMm(PicAttributeSet set)
Returns the relative-width for T-bars (width = linewidth-scale * line-width + relative_width) |
static boolean |
isDoubleLine(PicAttributeSet set)
Return whether double-line is on or off |
static boolean |
isOverStrike(PicAttributeSet set)
Return whether overstrike is on or off |
static boolean |
isPolydotsSuperimposed(PicAttributeSet set)
Returns true if dots superimpose on underlying curve |
static boolean |
isShadow(PicAttributeSet set)
Return whether shadow is on or off |
static void |
setArrowGlobalScaleLength(PicAttributeSet set,
double d)
Sets the scale-factor for the arrow length |
static void |
setArrowGlobalScaleWidth(PicAttributeSet set,
double d)
Sets the scale-factor for the arrow width |
static void |
setArrowInsetScale(PicAttributeSet set,
double d)
Sets the arrow inset scale-factor (actual inset = ARROW_INSET * actual length) |
static void |
setArrowLengthScale(PicAttributeSet set,
double d)
Sets the arrow length scale-factor (actual length (or height) = actual width * ARROW_LENGTH) |
static void |
setArrowWidthLineWidthScale(PicAttributeSet set,
double d)
Sets the the linewidth scale-factor for the arrow width (width = line-width-scale * line-width + minimum_size) |
static void |
setArrowWidthMinimumMm(PicAttributeSet set,
double d)
Sets the relative-size for arrows (width = linewidth-scale * line-width + minimum_size) |
static void |
setBracketLengthScale(PicAttributeSet set,
double d)
Sets the bracket length scale-factor (actual length (or height) = actual width * BRACKET_LENGTH) |
static void |
setDashOpaque(PicAttributeSet set,
double d)
set the opaque dash length |
static void |
setDashTransparent(PicAttributeSet set,
double d)
set the transparent dash length |
static void |
setDimen(PicAttributeSet set,
String style)
set the "dimen" parameter to OUTER, MIDDLE or INNER. |
static void |
setDotSep(PicAttributeSet set,
double d)
set the dot separation |
static void |
setDoubleLine(PicAttributeSet set,
boolean b)
set whether double-line is on or off |
static void |
setDoubleLineColor(PicAttributeSet set,
Color c)
Return the double-line colour |
static void |
setDoubleLineSep(PicAttributeSet set,
double d)
set the DoubleLine separation |
static void |
setFillColor(PicAttributeSet set,
Color c)
set the fill colour |
static void |
setFillStyle(PicAttributeSet set,
String style)
set the fill style to NONE, SOLID, HLINES, ... |
static void |
setHatchAngle(PicAttributeSet set,
double d)
set the hatch angle |
static void |
setHatchColor(PicAttributeSet set,
Color c)
set the hatch colour |
static void |
setHatchSep(PicAttributeSet set,
double d)
set the distance b/w hatches |
static void |
setHatchWidth(PicAttributeSet set,
double d)
set the hatch width |
static void |
setLeftArrow(PicAttributeSet set,
Arrow a)
set the left arrow |
static void |
setLineColor(PicAttributeSet set,
Color c)
set the stroke color |
static void |
setLineStyle(PicAttributeSet set,
String style)
set the line style |
static void |
setLineWidth(PicAttributeSet set,
double width)
set the line width |
static void |
setOverStrike(PicAttributeSet set,
boolean b)
set whether overstrike is on or off |
static void |
setOverStrikeColor(PicAttributeSet set,
Color c)
set the border color |
static void |
setOverStrikeWidth(PicAttributeSet set,
double width)
set the overstrike width |
static void |
setPolydotsAngle(PicAttributeSet set,
double d)
Sets the factor by which dots are to be rotated (in degrees and CCW) |
static void |
setPolydotsHorizontalScale(PicAttributeSet set,
double d)
Sets the factor by which dots are to be scaled horizontally |
static void |
setPolydotsSizeLineWidthScale(PicAttributeSet set,
double d)
Sets the line-width scale for polygon dots (size = linewidth-scale * line-width + minimum_size) |
static void |
setPolydotsSizeMinimumMm(PicAttributeSet set,
double d)
Sets the minimum size of polygon dots (size = linewidth-scale * line-width + minimum_size) |
static void |
setPolydotsStyle(PicAttributeSet set,
String s)
Sets the style of polygon dots |
static void |
setPolydotsSuperimposed(PicAttributeSet set,
boolean b)
Sets whether dots superimpose on underlying curve or not |
static void |
setPolydotsVerticalScale(PicAttributeSet set,
double d)
Sets the factor by which dots are to be scaled vertically |
static void |
setPstCustom(PicAttributeSet set,
String s)
set pst custom parameters |
static void |
setRightArrow(PicAttributeSet set,
Arrow a)
set the right arrow |
static void |
setRoundedBracketLengthScale(PicAttributeSet set,
double d)
Sets the rounded-bracket length scale-factor (actual length (or height) = actual width * BRACKET_LENGTH) |
static void |
setShadow(PicAttributeSet set,
boolean b)
set whether shadow is on or off |
static void |
setShadowAngle(PicAttributeSet set,
double d)
set the shadow angle |
static void |
setShadowColor(PicAttributeSet set,
Color c)
set the shadow colour |
static void |
setShadowSize(PicAttributeSet set,
double d)
set the ShadowSize |
static void |
setTBarWidthLineWidthScale(PicAttributeSet set,
double d)
Sets the linewidth-scale for T-bars (width = linewidth-scale * line-width + relative_width) |
static void |
setTBarWidthMinimumMm(PicAttributeSet set,
double d)
Sets the relative-width for T-bars (width = linewidth-scale * line-width + relative_width) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StyleConstants()
Method Detail |
public static String getLineStyle(PicAttributeSet set)
public static void setLineStyle(PicAttributeSet set, String style)
public static Color getLineColor(PicAttributeSet set)
public static void setLineColor(PicAttributeSet set, Color c)
public static double getLineWidth(PicAttributeSet set)
public static void setLineWidth(PicAttributeSet set, double width)
public static double getDashTransparent(PicAttributeSet set)
public static void setDashTransparent(PicAttributeSet set, double d)
public static double getDashOpaque(PicAttributeSet set)
public static void setDashOpaque(PicAttributeSet set, double d)
public static double getDotSep(PicAttributeSet set)
public static void setDotSep(PicAttributeSet set, double d)
public static boolean isDoubleLine(PicAttributeSet set)
public static void setDoubleLine(PicAttributeSet set, boolean b)
public static double getDoubleLineSep(PicAttributeSet set)
public static void setDoubleLineSep(PicAttributeSet set, double d)
public static Color getDoubleLineColor(PicAttributeSet set)
public static void setDoubleLineColor(PicAttributeSet set, Color c)
public static boolean isOverStrike(PicAttributeSet set)
public static void setOverStrike(PicAttributeSet set, boolean b)
public static double getOverStrikeWidth(PicAttributeSet set)
public static void setOverStrikeWidth(PicAttributeSet set, double width)
public static Color getOverStrikeColor(PicAttributeSet set)
public static void setOverStrikeColor(PicAttributeSet set, Color c)
public static boolean isShadow(PicAttributeSet set)
public static void setShadow(PicAttributeSet set, boolean b)
public static double getShadowSize(PicAttributeSet set)
public static void setShadowSize(PicAttributeSet set, double d)
public static double getShadowAngle(PicAttributeSet set)
public static void setShadowAngle(PicAttributeSet set, double d)
public static Color getShadowColor(PicAttributeSet set)
public static void setShadowColor(PicAttributeSet set, Color c)
public static String getDimen(PicAttributeSet set)
public static void setDimen(PicAttributeSet set, String style)
public static String getFillStyle(PicAttributeSet set)
public static void setFillStyle(PicAttributeSet set, String style)
public static Color getFillColor(PicAttributeSet set)
public static void setFillColor(PicAttributeSet set, Color c)
public static double getHatchWidth(PicAttributeSet set)
public static void setHatchWidth(PicAttributeSet set, double d)
public static double getHatchSep(PicAttributeSet set)
public static void setHatchSep(PicAttributeSet set, double d)
public static Color getHatchColor(PicAttributeSet set)
public static void setHatchColor(PicAttributeSet set, Color c)
public static double getHatchAngle(PicAttributeSet set)
public static void setHatchAngle(PicAttributeSet set, double d)
public static Arrow getLeftArrow(PicAttributeSet set)
public static void setLeftArrow(PicAttributeSet set, Arrow a)
public static Arrow getRightArrow(PicAttributeSet set)
public static void setRightArrow(PicAttributeSet set, Arrow a)
public static double getArrowGlobalScaleWidth(PicAttributeSet set)
public static void setArrowGlobalScaleWidth(PicAttributeSet set, double d)
public static double getArrowGlobalScaleLength(PicAttributeSet set)
public static void setArrowGlobalScaleLength(PicAttributeSet set, double d)
public static double getArrowWidthLineWidthScale(PicAttributeSet set)
public static void setArrowWidthLineWidthScale(PicAttributeSet set, double d)
public static double getArrowWidthMinimumMm(PicAttributeSet set)
public static void setArrowWidthMinimumMm(PicAttributeSet set, double d)
public static double getArrowLengthScale(PicAttributeSet set)
public static void setArrowLengthScale(PicAttributeSet set, double d)
public static double getArrowInsetScale(PicAttributeSet set)
public static void setArrowInsetScale(PicAttributeSet set, double d)
public static double getTBarWidthLineWidthScale(PicAttributeSet set)
public static void setTBarWidthLineWidthScale(PicAttributeSet set, double d)
public static double getTBarWidthMinimumMm(PicAttributeSet set)
public static void setTBarWidthMinimumMm(PicAttributeSet set, double d)
public static double getBracketLengthScale(PicAttributeSet set)
public static void setBracketLengthScale(PicAttributeSet set, double d)
public static double getRoundedBracketLengthScale(PicAttributeSet set)
public static void setRoundedBracketLengthScale(PicAttributeSet set, double d)
public static String getPstCustom(PicAttributeSet set)
public static void setPstCustom(PicAttributeSet set, String s)
public static String getPolydotsStyle(PicAttributeSet set)
public static void setPolydotsStyle(PicAttributeSet set, String s)
public static boolean isPolydotsSuperimposed(PicAttributeSet set)
public static void setPolydotsSuperimposed(PicAttributeSet set, boolean b)
public static double getPolydotsSizeLineWidthScale(PicAttributeSet set)
getPolydotsSizeMinimumMm(jpicedt.graphic.model.PicAttributeSet)
public static void setPolydotsSizeLineWidthScale(PicAttributeSet set, double d)
setPolydotsSizeMinimumMm(jpicedt.graphic.model.PicAttributeSet, double)
public static double getPolydotsSizeMinimumMm(PicAttributeSet set)
getPolydotsSizeMinimumMm(jpicedt.graphic.model.PicAttributeSet)
public static void setPolydotsSizeMinimumMm(PicAttributeSet set, double d)
setPolydotsSizeLineWidthScale(jpicedt.graphic.model.PicAttributeSet, double)
public static double getPolydotsHorizontalScale(PicAttributeSet set)
public static void setPolydotsHorizontalScale(PicAttributeSet set, double d)
public static double getPolydotsVerticalScale(PicAttributeSet set)
public static void setPolydotsVerticalScale(PicAttributeSet set, double d)
public static double getPolydotsAngle(PicAttributeSet set)
public static void setPolydotsAngle(PicAttributeSet set, double d)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |