|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jfig.objects.FigAttribs
collects all attributes of jfig objects.
FigAttribs encapsulates all attribute variables of jfig objects and some related editor attributes, including FIG 3.1 and FIG 3.2 format stuff. Note that all graphical objects in jfig share the same attribute data structure (instances of this class). This allows many editor commands to treat all objects the same, but implies a certain memory inefficiency, because all objects carry all attributes: Texts have unused arrow attributes, lines carry unused font info, etc.
Constructor Summary | |
FigAttribs()
the default attributes constructor. |
Method Summary | |
FigAttribs |
getClone()
construct and exact clone of all our attribute settings and attribute masks. |
int |
getDefaultFigVersion()
|
boolean |
getEnableJava2D()
|
double |
getExportMagnification()
|
int |
getFigJustification()
|
int |
getFigOrientation()
|
int |
getFigOrigin()
|
int |
getFigResolution()
|
int |
getFigUnits()
|
java.lang.String |
getPageJustification()
|
java.lang.String |
getPageOrientation()
the following methods are useful to keep Eclipse warning about non-static accesses to static members. |
java.lang.String |
getPageUnits()
|
java.lang.String |
getPaperSize()
|
java.lang.String |
getSingleOrMultipleSheets()
|
int |
getTransparentColorIndex()
|
boolean |
getUpdateAngleMask()
|
boolean |
getUpdateArrowModeMask()
|
boolean |
getUpdateArrowStyleMask()
|
boolean |
getUpdateCornerRadiusMask()
|
boolean |
getUpdateFillColorMask()
|
boolean |
getUpdateFillStyleMask()
|
boolean |
getUpdateFontFlagMask()
|
boolean |
getUpdateFontMask()
|
boolean |
getUpdateFontSizeMask()
|
boolean |
getUpdateLayerMask()
|
boolean |
getUpdateLineColorMask()
|
boolean |
getUpdateLineStyleMask()
|
boolean |
getUpdateLineWidthMask()
|
boolean |
getUpdateTextAlignMask()
|
static void |
initializeFromProperties(java.util.Properties pp)
initialize the FigAttribs from a properties object with the following keys: jfig.units jfig.pageJustification jfig.pageOrientation jfig.paperSize |
void |
NOT_YET()
|
void |
parse(java.lang.String s)
parse a string containing an attribute specification, where tokens are separated by spaces. |
void |
parseSingleToken(java.lang.String token)
|
void |
restoreDefaults()
restoreDefaults(): restore some critical attributes to sensible values. |
void |
setArrowMode(java.lang.String s)
set the arrow mode for polylines/splines/arcs to one of: "none", "forward", "backward", "both", "=", "=>", "<", "<=>" |
void |
setArrowSize(java.lang.String s)
we expect a string containing three double numbers, separated by commas, specifying arrow width (in mm), length (in mm), and thickness (FIG), e.g 3.0,5.0,1 |
void |
setArrowStyle(java.lang.String s)
|
void |
setDefaultFigVersion(int i)
|
void |
setDepth(java.lang.String s)
|
void |
setExportMagnification(double d)
|
void |
setFigJustification(int i)
|
void |
setFigLineWidth(int x)
scale from FIG3.1 line thickness (in units of 1/80th inch) (=approx with in pixels on 75dpi screen) to jfig units at 2400dpi (with 30/2400 = 1/80). |
void |
setFigOrientation(int i)
|
void |
setFigOrigin(int i)
|
void |
setFigResolution(int i)
|
void |
setFigUnits(int i)
|
void |
setFigVersion(int i)
|
void |
setFillColor(java.awt.Color color)
|
void |
setFillColor(java.lang.String s)
|
void |
setFillStyle(java.lang.String s)
|
void |
setFont(java.lang.String s)
try to set the font for a text object from the given string. |
void |
setFontSize(java.lang.String s)
|
void |
setLayer(java.lang.String s)
|
void |
setLineColor(java.awt.Color color)
set the line color and update the fig_line_color index. |
void |
setLineColor(java.lang.String s)
|
void |
setLineStyle(java.lang.String s)
|
void |
setLineWidth(java.lang.String s)
set the lineWidth, expected to be specified in FIG units, Also see FigParser.fig_thickness(). |
void |
setPageJustification(java.lang.String s)
|
void |
setPageOrientation(java.lang.String s)
|
void |
setPageUnits(java.lang.String s)
|
void |
setPaperSize(java.lang.String s)
|
void |
setRotationAngle(java.lang.String s)
set both the object (fig_angle) and ellipse (fig_ellipse_angle) rotation angles to the specified value, measured in degrees (0..360). |
void |
setSingleOrMultipleSheets(java.lang.String s)
|
void |
setTextAlign(java.lang.String s)
|
void |
setTransparentColorIndex(int i)
|
void |
setUpdateAngleMask(boolean b)
|
void |
setUpdateArrowModeMask(boolean b)
|
void |
setUpdateArrowStyleMask(boolean b)
|
void |
setUpdateCornerRadiusMask(boolean b)
|
void |
setUpdateFillColorMask(boolean b)
|
void |
setUpdateFillStyleMask(boolean b)
|
void |
setUpdateFontFlagMask(boolean b)
|
void |
setUpdateFontMask(boolean b)
|
void |
setUpdateFontSizeMask(boolean b)
|
void |
setUpdateLayerMask(boolean b)
|
void |
setUpdateLineColorMask(boolean b)
|
void |
setUpdateLineStyleMask(boolean b)
|
void |
setUpdateLineWidthMask(boolean b)
|
void |
setUpdateTextAlignMask(boolean b)
|
java.lang.String |
toString()
toString(): for debug purposes mainly. |
void |
update(FigAttribs source)
update our attributes from the 'sourceAndMask' object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FIG_20
public static final int FIG_21
public static final int FIG_30
public static final int FIG_31
public static final int FIG_32
public static final int SIMPLE_ARROW
public static final int TRIANGLE_ARROW
public static final int TRIANGLE_FILL_ARROW
public static final int BACK_ARROW
public static final int BACK_FILL_ARROW
public static final int ARC_ARROW
public static final int ARC_FILL_ARROW
public static final int SOLDERDOT_ARROW
public static final int NO_ARROW
public static final int FORWARD_ARROW
public static final int BACKWARD_ARROW
public static final int DOUBLE_ARROW
public static final int SOLID_LINE
public static final int DASHED_LINE
public static final int DOTTED_LINE
public static final int DASH_DOT_LINE
public static final int DASH_DOT2_LINE
public static final int DASH_DOT3_LINE
public static final int LINE_WIDTH_0
public static final int LINE_WIDTH_1
public static final int LINE_WIDTH_2
public static final int LINE_WIDTH_3
public static final int LINE_WIDTH_4
public static final int LINE_WIDTH_5
public static final int LINE_WIDTH_6
public static final int LINE_WIDTH_7
public static final int LINE_WIDTH_8
public static final int LINE_WIDTH_9
public static final double defaultDashLength
public static final int NO_FILL
public static final int SOLID_FILL
public static final int PATTERN_FILL
public static final int PATTERN_BLACK
public static final int PATTERN_PURE
public static final int PATTERN_WHITE
public static final int PATTERN_30_DEGREE_LEFT
public static final int PATTERN_30_DEGREE_RIGHT
public static final int PATTERN_30_DEGREE_CROSSHATCH
public static final int PATTERN_45_DEGREE_LEFT
public static final int PATTERN_45_DEGREE_RIGHT
public static final int PATTERN_45_DEGREE_CROSSHATCH
public static final int PATTERN_BRICKS
public static final int PATTERN_CIRCLES
public static final int PATTERN_HORIZONTAL_LINES
public static final int PATTERN_VERTICAL_LINES
public static final int PATTERN_CROSSHATCH
public static final int PATTERN_FISH_SCALES
public static final int PATTERN_SMALL_FISH_SCALES
public static final int PATTERN_OCTOGONS
public static final int PATTERN_HORIZONTAL_TIRE_TREADS
public static final int PATTERN_VERTICAL_TIRE_TREADDS
public static final int JOIN_MITER
public static final int JOIN_BEVEL
public static final int JOIN_ROUND
public static final int CAP_BUTT
public static final int CAP_ROUND
public static final int CAP_PROJECTING
public static final int NO_ALIGN
public static final int LEFT_ALIGN
public static final int CENTER_X_ALIGN
public static final int RIGHT_ALIGN
public static final int BOTTOM_ALIGN
public static final int CENTER_Y_ALIGN
public static final int TOP_ALIGN
public static final int defaultFontSize
public static final java.awt.Font defaultFont
public static final int FONT_TIMES_ROMAN
public static final int FONT_TIMES_ROMAN_ITALIC
public static final int FONT_TIMES_ROMAN_BOLD
public static final int FONT_TIMES_ROMAN_BOLD_ITALIC
public static final int FONT_AVANTGARDE_BOOK
public static final int FONT_AVANTGARDE_BOOK_OBLIQUE
public static final int FONT_AVANTGARDE_BOOK_DEMI
public static final int FONT_AVANTGARDE_BOOK_DEMI_OBLIQUE
public static final int FONT_BOOKMAN_LIGHT
public static final int FONT_BOOKMAN_LIGHT_ITALIC
public static final int FONT_BOOKMAN_LIGHT_DEMI
public static final int FONT_BOOKMAN_LIGHT_DEMI_ITALIC
public static final int FONT_COURIER
public static final int FONT_COURIER_OBLIQUE
public static final int FONT_COURIER_BOLD
public static final int FONT_COURIER_BOLD_OBLIQUE
public static final int FONT_HELVETICA
public static final int FONT_HELVETICA_OBLIQUE
public static final int FONT_HELVETICA_BOLD
public static final int FONT_HELVETICA_BOLD_OBLIQUE
public static final int FONT_HELVETICA_NARROW
public static final int FONT_HELVETICA_NARROW_OBLIQUE
public static final int FONT_HELVETICA_NARROW_BOLD
public static final int FONT_HELVETICA_NARROW_BOLD_OBLIQUE
public static final int FONT_NEW_CENTURY_SCHLBK_ROMAN
public static final int FONT_NEW_CENTURY_SCHLBK_ITALIC
public static final int FONT_NEW_CENTURY_SCHLBK_BOLD
public static final int FONT_NEW_CENTURY_SCHLBK_BOLD_ITALIC
public static final int FONT_PALATINO_ROMAN
public static final int FONT_PALATINO_ITALIC
public static final int FONT_PALATINO_BOLD
public static final int FONT_PALATINO_BOLD_ITALIC
public static final int FONT_SYMBOL
public static final int FONT_ZAPF_CHANCERY_MEDIUM_ITALIC
public static final int FONT_ZAPF_DINGBATS
public static final int FONT_CMR
public static final int FONT_CMTI
public static final int FONT_CMBX
public static final int FONT_CMSS
public static final int FONT_CMSL
public static final int FONT_CMTT
public static final int FONT_CMITT
public static final int FONT_CMMI
public static final int FONT_CMMIB
public static final int FONT_CMSY
public static final int FONT_CMBSY
public static final int FONT_CMEX
public static final int FONT_MSAM
public static final int FONT_MSBM
public static final java.lang.String HEADER_UNITS_METRIC
public static final java.lang.String HEADER_UNITS_INCHES
public static final java.lang.String[] HEADER_PAPER_SIZE
public static int defaultFigVersion
public static java.lang.String pageUnits
public static java.lang.String pageJustification
public static java.lang.String pageOrientation
public static java.lang.String paperSize
public static java.lang.String singleOrMultipleSheets
public static double exportMagnification
public static int transparentColorIndex
public static final int Landscape
public static final int Portrait
public static final int CenterJustification
public static final int FlushLeftJustification
public static final int MetricUnits
public static final int InchesUnits
public static final int XMMUnits
public static int fig_orientation
public static int fig_justification
public static int fig_units
public static int fig_resolution
public static int fig_origin
public int fig_line_color
public int fig_fill_color
public int fig_area_fill
public int fig_pen_style
public int fig_join_style
public int fig_cap_style
public double fig_style_val
public double fig_angle
public double fig_ellipse_angle
public int fig_ellipse_direction
public int fig_font
public int fig_font_flags
public double fig_text_height
public double fig_text_width
public static boolean enableJava2D
public int figVersion
public java.awt.Color lineColor
public int lineStyle
public int arrowMode
public double lineWidth
public double dashLength
public int currentLayer
public int arrow_f_Style
public int arrow_b_Style
public double arrow_f_Width
public double arrow_f_Length
public double arrow_f_Thickness
public double arrow_b_Width
public double arrow_b_Length
public double arrow_b_Thickness
public int cornerRadius
public int objectAlign
public int textAlign
public java.awt.Color fillColor
public int fillStyle
public int fontSize
public static boolean updateLineColorMask
public static boolean updateLineStyleMask
public static boolean updateLineWidthMask
public static boolean updateArrowModeMask
public static boolean updateArrowStyleMask
public static boolean updateFillColorMask
public static boolean updateFillStyleMask
public static boolean updateFontMask
public static boolean updateFontSizeMask
public static boolean updateFontFlagMask
public static boolean updateTextAlignMask
public static boolean updateTextMask
public static boolean updateAngleMask
public static boolean updateLayerMask
public static boolean updateCornerRadiusMask
Constructor Detail |
public FigAttribs()
Method Detail |
public FigAttribs getClone()
public void update(FigAttribs source)
public static void initializeFromProperties(java.util.Properties pp)
public void setFigLineWidth(int x)
public java.lang.String getPageOrientation()
public java.lang.String getPageJustification()
public java.lang.String getPageUnits()
public java.lang.String getPaperSize()
public double getExportMagnification()
public java.lang.String getSingleOrMultipleSheets()
public int getTransparentColorIndex()
public int getFigOrientation()
public int getFigJustification()
public int getFigUnits()
public int getFigOrigin()
public int getFigResolution()
public int getDefaultFigVersion()
public boolean getEnableJava2D()
public void setPageOrientation(java.lang.String s)
public void setPageJustification(java.lang.String s)
public void setPageUnits(java.lang.String s)
public void setPaperSize(java.lang.String s)
public void setExportMagnification(double d)
public void setSingleOrMultipleSheets(java.lang.String s)
public void setDefaultFigVersion(int i)
public void setFigVersion(int i)
public void setFigOrientation(int i)
public void setFigJustification(int i)
public void setFigUnits(int i)
public void setFigResolution(int i)
public void setFigOrigin(int i)
public void setTransparentColorIndex(int i)
public boolean getUpdateLineStyleMask()
public boolean getUpdateLineWidthMask()
public boolean getUpdateLineColorMask()
public boolean getUpdateArrowModeMask()
public boolean getUpdateArrowStyleMask()
public boolean getUpdateFillStyleMask()
public boolean getUpdateFillColorMask()
public boolean getUpdateFontMask()
public boolean getUpdateFontSizeMask()
public boolean getUpdateFontFlagMask()
public boolean getUpdateTextAlignMask()
public boolean getUpdateLayerMask()
public boolean getUpdateCornerRadiusMask()
public boolean getUpdateAngleMask()
public void setUpdateLineStyleMask(boolean b)
public void setUpdateLineWidthMask(boolean b)
public void setUpdateLineColorMask(boolean b)
public void setUpdateArrowModeMask(boolean b)
public void setUpdateArrowStyleMask(boolean b)
public void setUpdateFillStyleMask(boolean b)
public void setUpdateFillColorMask(boolean b)
public void setUpdateFontMask(boolean b)
public void setUpdateFontSizeMask(boolean b)
public void setUpdateFontFlagMask(boolean b)
public void setUpdateTextAlignMask(boolean b)
public void setUpdateLayerMask(boolean b)
public void setUpdateCornerRadiusMask(boolean b)
public void setUpdateAngleMask(boolean b)
public void setLineColor(java.awt.Color color)
public void setFillColor(java.awt.Color color)
public java.lang.String toString()
public void restoreDefaults()
public void parse(java.lang.String s)
public void parseSingleToken(java.lang.String token)
public void setLineColor(java.lang.String s)
public void setLineStyle(java.lang.String s)
public void setLineWidth(java.lang.String s)
public void setArrowMode(java.lang.String s)
public void setArrowStyle(java.lang.String s)
public void setArrowSize(java.lang.String s)
public void setFillColor(java.lang.String s)
public void setFillStyle(java.lang.String s)
public void setFont(java.lang.String s)
public void setFontSize(java.lang.String s)
public void setTextAlign(java.lang.String s)
public void setLayer(java.lang.String s)
public void setDepth(java.lang.String s)
public void setRotationAngle(java.lang.String s)
public void NOT_YET()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |