jfig.gui
Class JAttribsControlsFactory

java.lang.Object
  extended byjfig.gui.JAttribsControlsFactory

public class JAttribsControlsFactory
extends java.lang.Object

create and manage the jfig editor attribute controls.

JAttribsControlsFactory: an utility class for jfig to create and manage the attribute control GUI components, e.g. to specify font name, size, alignment, line width, style, arrow mode, line and fill colors, etc.

JAttribsControlsFactory is a Singleton class, while the individual components are not. Use getJAttribsControlsFactory() to initialize the Singleton.

Note that not all XFIG attributes and attribute values are supported yet, e.g. fill styles and several fonts.

To retrieve the full set of currently selected attributes for a given instance of JAttribsControlsFactory, just call getValues(). To update the GUI controls from a given attribute, just call showValues( master_attributes );

The default background color to be used for transparent pixels on the several button's icons is taken from the "jfig.gui.Editor.BackgroundColor" property if set, or the platform's default background color if not set.


Field Summary
(package private)  java.awt.Image allIcons
           
(package private)  JStateButton arrowModeButton
           
(package private)  JStateButton arrowStyleButton
           
(package private)  java.awt.Color backgroundColor
           
(package private)  javax.swing.JComboBox centerFlushLeftChoice
           
(package private)  ColorCache colorCache
           
(package private)  javax.swing.JTextField dashLengthField
           
(package private)  boolean debug
           
(package private)  JNumericStateButton depthButton
           
(package private)  JColorButton fillColorButton
           
(package private)  JFillPatternButton fillPatternButton
           
(package private)  JStateButton fillStyleButton
           
(package private)  JStateButton fontFlagButton
           
(package private)  javax.swing.JComboBox fontFlagChoice
           
(package private)  JFontButton fontSelectButton
           
(package private)  JNumericStateButton fontSizeButton
           
(package private)  JStateButton geometryButton
           
(package private)  java.awt.Image geometryIcons
           
(package private)  StatusMessage helper
           
(package private)  java.awt.Image[] iconImages
           
(package private)  javax.swing.JComboBox landscapePortraitChoice
           
(package private)  JColorButton lineColorButton
           
(package private)  JStateButton lineStyleButton
           
(package private)  JStateButton lineWidthButton
           
(package private)  JStateButton objectAlignXButton
           
(package private)  JStateButton objectAlignYButton
           
(package private)  JNumericStateButton rotationAngleButton
           
(package private)  JNumericStateButton roundRectButton
           
(package private)  JStateButton smartLinksButton
           
(package private)  JStateButton snapModeButton
           
(package private)  JStateButton textAlignButton
           
(package private)  JUpdateModeButton updateModeButton
           
 
Method Summary
 void addUpdateModeButtonListener(java.awt.event.ActionListener AL)
           
 javax.swing.JPanel buildPanel(java.awt.Component parent)
           
 JStateButton createArrowModeButton(java.awt.Component parent)
           
 JStateButton createArrowStyleButton(java.awt.Component parent)
           
 javax.swing.JTextField createBackArrowLengthField(java.awt.Component parent)
           
 javax.swing.JTextField createBackArrowThicknessField(java.awt.Component parent)
           
 javax.swing.JTextField createBackArrowWidthField(java.awt.Component parent)
           
 javax.swing.JComboBox createCenterFlushLeftChoice(java.awt.Component parent)
           
 javax.swing.JTextField createDashLengthField(java.awt.Component parent)
           
 JNumericStateButton createDepthButton(java.awt.Component parent)
           
 JColorButton createFillColorButton(java.awt.Component parent)
           
 JFillPatternButton createFillPatternButton(java.awt.Component parent)
           
 JStateButton createFillStyleButton(java.awt.Component parent)
           
 JStateButton createFontFlagButton(java.awt.Component parent)
           
 javax.swing.JComboBox createFontFlagChoice(java.awt.Component parent)
           
 JFontButton createFontSelectButton(java.awt.Component parent)
           
 JNumericStateButton createFontSizeButton(java.awt.Component parent)
           
 javax.swing.JTextField createFrontArrowLengthField(java.awt.Component parent)
           
 javax.swing.JTextField createFrontArrowThicknessField(java.awt.Component parent)
           
 javax.swing.JTextField createFrontArrowWidthField(java.awt.Component parent)
           
 JStateButton createGeometryButton(java.awt.Component parent)
           
 javax.swing.JComboBox createLandscapePortraitChoice(java.awt.Component parent)
           
 JColorButton createLineColorButton(java.awt.Component parent)
           
 JStateButton createLineStyleButton(java.awt.Component parent)
           
 JStateButton createLineWidthButton(java.awt.Component parent)
           
 JStateButton createObjectAlignXButton(java.awt.Component parent)
           
 JStateButton createObjectAlignYButton(java.awt.Component parent)
           
 JNumericStateButton createRotationButton(java.awt.Component parent)
           
 JNumericStateButton createRoundRectButton(java.awt.Component parent)
           
 JStateButton createSmartLinksButton(java.awt.Component parent)
           
 JStateButton createSnapModeButton(java.awt.Component parent)
           
 JStateButton createTextAlignButton(java.awt.Component parent)
           
 JStateButton createUpdateMaskButton(java.awt.Component parent, java.lang.String callback, java.lang.String helpMessage)
           
 JUpdateModeButton createUpdateModeButton(java.awt.Component parent)
          create the special button used to select the update mask status, states are "none", "all", "invert current status".
 void dbg(java.lang.String msg)
           
 java.awt.Point[] getCoords(java.lang.String s)
          parse the text from the coordsTextArea and reconstruct the world coordinates, put them into an array and return a reference to this array.
 int getGeometryMode()
           
static JAttribsControlsFactory getJAttribsControlsFactory(FigBasicEditor editor)
          create a return a collection of all FIG attribute controls (e.g.
 int getObjectAlignXMode()
           
 int getObjectAlignYMode()
           
 int getSmartLinksMode()
           
 FigAttribs getValues(FigAttribs attr)
          getValues --- set the values for 'attr' from the currently selected GUI values.
 void invertUpdateStatus()
           
static void main(java.lang.String[] argv)
          simple self test
static void msg(java.lang.String msg)
           
 void retrievePoints(FigObject object, javax.swing.JTextArea coordsTextArea)
           
 void retrievePoints(FigObject object, javax.swing.JTextField coordsTextField)
           
 void selectFont(FigAttribs attr, JFontButton fontSelectButton)
           
 void setArrowMode(FigAttribs attr, JStateButton arrowModeButton)
          the arrowModeButton has icons 'none', 'forward', 'backward', 'both'
 void setArrowStyle(FigAttribs attr, JStateButton arrowStyleButton)
          the arrowStyleButton has icons 'simple arrow' ...
 void setBArrowLength(FigAttribs attr, javax.swing.JTextField field)
           
 void setBArrowThickness(FigAttribs attr, javax.swing.JTextField field)
           
 void setBArrowWidth(FigAttribs attr, javax.swing.JTextField field)
           
 void setCornerRadius(FigAttribs attr, JNumericStateButton roundRectButton)
          cornerRadius in pixels (at 2400dpi) is 96*cornerRadius in mm
 void setDashLength(FigAttribs attr, javax.swing.JTextField dashLengthField)
           
 void setDepth(FigAttribs attr, JNumericStateButton depthButton)
          get depth (layer) within [0 ..
 void setFArrowLength(FigAttribs attr, javax.swing.JTextField field)
           
 void setFArrowThickness(FigAttribs attr, javax.swing.JTextField field)
           
 void setFArrowWidth(FigAttribs attr, javax.swing.JTextField field)
           
 void setFillColor(FigAttribs attr, JColorButton fillColorButton)
           
 void setFillPattern(FigAttribs attr, JFillPatternButton FBP)
          set the fill style / fill pattern variables in the FigAttribs "attr" object from the current settings of FillPatternButton FBP.
 void setFillStyleOld(FigAttribs attr, JStateButton fillStyleButton)
          the fillStyleButton has icons 'none', 'solid', 'pattern'
 void setFontFlags(FigAttribs attr, javax.swing.JComboBox fontFlagChoice)
           
 void setFontFlags(FigAttribs attr, JStateButton fontFlagButton)
           
 void setFontSize(FigAttribs attr, JNumericStateButton fontSizeButton)
           
 void setJustificationMode(FigAttribs attr, javax.swing.JComboBox centerFlushLeftChoice)
           
 void setLandscapeMode(FigAttribs attr, javax.swing.JComboBox landscapePortraitChoice)
           
 void setLineColor(FigAttribs attr, JColorButton lineColorButton)
          set the attribs line color to the lineColorButton selection
 void setLineStyle(FigAttribs attr, JStateButton lineStyleButton)
          the lineStyleButton has icons 'solid', 'dashed', 'dotted'
 void setLineWidth(FigAttribs attr, JStateButton lineWidthButton)
           
 void setRotationAngle(FigAttribs attr, JNumericStateButton rotationAngleButton)
           
 void setSnapMode(FigAttribs attr, JStateButton snapModeButton)
           
 void setStatusMessage(StatusMessage _helper)
           
 void setTextAlignment(FigAttribs attr, JStateButton textAlignButton)
          the textAlignButton has icons 'left', 'center', 'right'
 void setUpdateMode(boolean enable)
           
 void setUpdateStatusAll()
           
 void setUpdateStatusNone()
           
 void showArrowMode(FigAttribs attr, JStateButton arrowModeButton)
           
 void showArrowStyle(FigAttribs attr, JStateButton arrowStyleButton)
           
 void showBArrowLength(FigAttribs attr, javax.swing.JTextField field)
           
 void showBArrowThickness(FigAttribs attr, javax.swing.JTextField field)
           
 void showBArrowWidth(FigAttribs attr, javax.swing.JTextField field)
           
 void showCoords(java.awt.Point[] wcp, javax.swing.JTextArea coordsTextArea)
          display the (2400 dpi world) coordinates given by the Points in wcp[] in editable form in our coordsTextArea.
 void showCoords(java.awt.Point[] wcp, javax.swing.JTextField coordsTextField)
           
 void showCoords(java.awt.Point wcp, javax.swing.JTextField coordsTextField)
           
 void showCornerRadius(FigAttribs attr, JNumericStateButton roundRectButton)
           
 void showDashLength(FigAttribs attr, javax.swing.JTextField dashLengthField)
           
 void showDepth(FigAttribs attr, JNumericStateButton depthButton)
           
 void showFArrowLength(FigAttribs attr, javax.swing.JTextField field)
           
 void showFArrowThickness(FigAttribs attr, javax.swing.JTextField field)
           
 void showFArrowWidth(FigAttribs attr, javax.swing.JTextField field)
           
 void showFillColor(FigAttribs attr, JColorButton fillColorButton)
           
 void showFillPattern(FigAttribs attr, JFillPatternButton FPB)
           
 void showFillStyle(FigAttribs attr, JStateButton fillStyleButton)
           
 void showFontFlags(FigAttribs attr, javax.swing.JComboBox fontFlagChoice)
           
 void showFontFlags(FigAttribs attr, JStateButton fontFlagButton)
           
 void showFontName(FigAttribs attr, JFontButton fontButton)
           
 void showFontSize(FigAttribs attr, JNumericStateButton fontSizeButton)
           
 void showJustificationMode(FigAttribs attr, javax.swing.JComboBox centerFlushLeftChoice)
           
 void showLandscapeMode(FigAttribs attr, javax.swing.JComboBox landscapePortraitChoice)
           
 void showLineColor(FigAttribs attr, JColorButton lineColorButton)
           
 void showLineStyle(FigAttribs attr, JStateButton lineStyleButton)
           
 void showLineWidth(FigAttribs attr, JStateButton lineWidthButton)
          set current line Width, lineWidthButton has icons '0' '1' ..
 void showRotationAngle(FigAttribs attr, JNumericStateButton rotationAngleButton)
           
 void showTextAlignment(FigAttribs attr, JStateButton textAlignButton)
           
 void showValues(FigAttribs attr)
          update all the GUI controls to reflect the current attribute values from object 'attr'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

boolean debug

updateModeButton

JUpdateModeButton updateModeButton

snapModeButton

JStateButton snapModeButton

landscapePortraitChoice

javax.swing.JComboBox landscapePortraitChoice

centerFlushLeftChoice

javax.swing.JComboBox centerFlushLeftChoice

lineStyleButton

JStateButton lineStyleButton

lineWidthButton

JStateButton lineWidthButton

lineColorButton

JColorButton lineColorButton

geometryButton

JStateButton geometryButton

arrowModeButton

JStateButton arrowModeButton

arrowStyleButton

JStateButton arrowStyleButton

fillStyleButton

JStateButton fillStyleButton

fillPatternButton

JFillPatternButton fillPatternButton

fillColorButton

JColorButton fillColorButton

textAlignButton

JStateButton textAlignButton

fontSelectButton

JFontButton fontSelectButton

fontSizeButton

JNumericStateButton fontSizeButton

fontFlagButton

JStateButton fontFlagButton

fontFlagChoice

javax.swing.JComboBox fontFlagChoice

objectAlignXButton

JStateButton objectAlignXButton

objectAlignYButton

JStateButton objectAlignYButton

roundRectButton

JNumericStateButton roundRectButton

depthButton

JNumericStateButton depthButton

dashLengthField

javax.swing.JTextField dashLengthField

rotationAngleButton

JNumericStateButton rotationAngleButton

smartLinksButton

JStateButton smartLinksButton

colorCache

ColorCache colorCache

helper

StatusMessage helper

backgroundColor

java.awt.Color backgroundColor

allIcons

java.awt.Image allIcons

iconImages

java.awt.Image[] iconImages

geometryIcons

java.awt.Image geometryIcons
Method Detail

getJAttribsControlsFactory

public static JAttribsControlsFactory getJAttribsControlsFactory(FigBasicEditor editor)
create a return a collection of all FIG attribute controls (e.g. line width, line style, line color, ... text rotation angle). The "editor" argument is just used to decide whether to create a new set of controls or to return a reference to a previously created for the same editor.


setStatusMessage

public void setStatusMessage(StatusMessage _helper)

createUpdateModeButton

public JUpdateModeButton createUpdateModeButton(java.awt.Component parent)
create the special button used to select the update mask status, states are "none", "all", "invert current status".


createLineStyleButton

public JStateButton createLineStyleButton(java.awt.Component parent)

createLineColorButton

public JColorButton createLineColorButton(java.awt.Component parent)

createFillPatternButton

public JFillPatternButton createFillPatternButton(java.awt.Component parent)

createFillStyleButton

public JStateButton createFillStyleButton(java.awt.Component parent)

createSmartLinksButton

public JStateButton createSmartLinksButton(java.awt.Component parent)

createFillColorButton

public JColorButton createFillColorButton(java.awt.Component parent)

createArrowStyleButton

public JStateButton createArrowStyleButton(java.awt.Component parent)

createArrowModeButton

public JStateButton createArrowModeButton(java.awt.Component parent)

createFrontArrowWidthField

public javax.swing.JTextField createFrontArrowWidthField(java.awt.Component parent)

createFrontArrowLengthField

public javax.swing.JTextField createFrontArrowLengthField(java.awt.Component parent)

createFrontArrowThicknessField

public javax.swing.JTextField createFrontArrowThicknessField(java.awt.Component parent)

createBackArrowWidthField

public javax.swing.JTextField createBackArrowWidthField(java.awt.Component parent)

createBackArrowLengthField

public javax.swing.JTextField createBackArrowLengthField(java.awt.Component parent)

createBackArrowThicknessField

public javax.swing.JTextField createBackArrowThicknessField(java.awt.Component parent)

createTextAlignButton

public JStateButton createTextAlignButton(java.awt.Component parent)

createFontSelectButton

public JFontButton createFontSelectButton(java.awt.Component parent)

createFontSizeButton

public JNumericStateButton createFontSizeButton(java.awt.Component parent)

createFontFlagChoice

public javax.swing.JComboBox createFontFlagChoice(java.awt.Component parent)

createFontFlagButton

public JStateButton createFontFlagButton(java.awt.Component parent)

createLineWidthButton

public JStateButton createLineWidthButton(java.awt.Component parent)

createGeometryButton

public JStateButton createGeometryButton(java.awt.Component parent)

createRoundRectButton

public JNumericStateButton createRoundRectButton(java.awt.Component parent)

createDepthButton

public JNumericStateButton createDepthButton(java.awt.Component parent)

createDashLengthField

public javax.swing.JTextField createDashLengthField(java.awt.Component parent)

createSnapModeButton

public JStateButton createSnapModeButton(java.awt.Component parent)

createObjectAlignXButton

public JStateButton createObjectAlignXButton(java.awt.Component parent)

createObjectAlignYButton

public JStateButton createObjectAlignYButton(java.awt.Component parent)

createRotationButton

public JNumericStateButton createRotationButton(java.awt.Component parent)

createLandscapePortraitChoice

public javax.swing.JComboBox createLandscapePortraitChoice(java.awt.Component parent)

createCenterFlushLeftChoice

public javax.swing.JComboBox createCenterFlushLeftChoice(java.awt.Component parent)

createUpdateMaskButton

public JStateButton createUpdateMaskButton(java.awt.Component parent,
                                           java.lang.String callback,
                                           java.lang.String helpMessage)

buildPanel

public javax.swing.JPanel buildPanel(java.awt.Component parent)

getObjectAlignXMode

public int getObjectAlignXMode()

getObjectAlignYMode

public int getObjectAlignYMode()

getSmartLinksMode

public int getSmartLinksMode()

getGeometryMode

public int getGeometryMode()

getValues

public FigAttribs getValues(FigAttribs attr)
getValues --- set the values for 'attr' from the currently selected GUI values.

Parameters:
attr - the FigAttribs class object to modify. A new object will be created if this parameter is null.
Returns:
values a FigAttribs class object with all attributes.

setDepth

public void setDepth(FigAttribs attr,
                     JNumericStateButton depthButton)
get depth (layer) within [0 .. 999]. Values outside this range are silently truncated. Illegal numbers result in the value '10'.


setDashLength

public void setDashLength(FigAttribs attr,
                          javax.swing.JTextField dashLengthField)

setLineWidth

public void setLineWidth(FigAttribs attr,
                         JStateButton lineWidthButton)

setLineStyle

public void setLineStyle(FigAttribs attr,
                         JStateButton lineStyleButton)
the lineStyleButton has icons 'solid', 'dashed', 'dotted'


setCornerRadius

public void setCornerRadius(FigAttribs attr,
                            JNumericStateButton roundRectButton)
cornerRadius in pixels (at 2400dpi) is 96*cornerRadius in mm


setLineColor

public void setLineColor(FigAttribs attr,
                         JColorButton lineColorButton)
set the attribs line color to the lineColorButton selection


setFillColor

public void setFillColor(FigAttribs attr,
                         JColorButton fillColorButton)

setFillPattern

public void setFillPattern(FigAttribs attr,
                           JFillPatternButton FBP)
set the fill style / fill pattern variables in the FigAttribs "attr" object from the current settings of FillPatternButton FBP. This method is also responsible to handle the special cases required by the FIG file format for black or white fill colors. Especially, it will convert the out-of-range fill pattern values of 21-40 to the last legal value 20 (the pure color) for black or white fill color. All values from -1, 0, to 56 are legal for other fill colors.


setFillStyleOld

public void setFillStyleOld(FigAttribs attr,
                            JStateButton fillStyleButton)
the fillStyleButton has icons 'none', 'solid', 'pattern'


setArrowStyle

public void setArrowStyle(FigAttribs attr,
                          JStateButton arrowStyleButton)
the arrowStyleButton has icons 'simple arrow' ... 'solder dot'


setFArrowWidth

public void setFArrowWidth(FigAttribs attr,
                           javax.swing.JTextField field)

setFArrowLength

public void setFArrowLength(FigAttribs attr,
                            javax.swing.JTextField field)

setFArrowThickness

public void setFArrowThickness(FigAttribs attr,
                               javax.swing.JTextField field)

setBArrowWidth

public void setBArrowWidth(FigAttribs attr,
                           javax.swing.JTextField field)

setBArrowLength

public void setBArrowLength(FigAttribs attr,
                            javax.swing.JTextField field)

setBArrowThickness

public void setBArrowThickness(FigAttribs attr,
                               javax.swing.JTextField field)

setArrowMode

public void setArrowMode(FigAttribs attr,
                         JStateButton arrowModeButton)
the arrowModeButton has icons 'none', 'forward', 'backward', 'both'


setTextAlignment

public void setTextAlignment(FigAttribs attr,
                             JStateButton textAlignButton)
the textAlignButton has icons 'left', 'center', 'right'


setFontSize

public void setFontSize(FigAttribs attr,
                        JNumericStateButton fontSizeButton)

setFontFlags

public void setFontFlags(FigAttribs attr,
                         JStateButton fontFlagButton)

setFontFlags

public void setFontFlags(FigAttribs attr,
                         javax.swing.JComboBox fontFlagChoice)

selectFont

public void selectFont(FigAttribs attr,
                       JFontButton fontSelectButton)

setSnapMode

public void setSnapMode(FigAttribs attr,
                        JStateButton snapModeButton)

setLandscapeMode

public void setLandscapeMode(FigAttribs attr,
                             javax.swing.JComboBox landscapePortraitChoice)

setJustificationMode

public void setJustificationMode(FigAttribs attr,
                                 javax.swing.JComboBox centerFlushLeftChoice)

setRotationAngle

public void setRotationAngle(FigAttribs attr,
                             JNumericStateButton rotationAngleButton)

showValues

public void showValues(FigAttribs attr)
update all the GUI controls to reflect the current attribute values from object 'attr'


showDepth

public void showDepth(FigAttribs attr,
                      JNumericStateButton depthButton)

showDashLength

public void showDashLength(FigAttribs attr,
                           javax.swing.JTextField dashLengthField)

showLineWidth

public void showLineWidth(FigAttribs attr,
                          JStateButton lineWidthButton)
set current line Width, lineWidthButton has icons '0' '1' .. '8'


showLineStyle

public void showLineStyle(FigAttribs attr,
                          JStateButton lineStyleButton)

showLineColor

public void showLineColor(FigAttribs attr,
                          JColorButton lineColorButton)

showFillPattern

public void showFillPattern(FigAttribs attr,
                            JFillPatternButton FPB)

showFillStyle

public void showFillStyle(FigAttribs attr,
                          JStateButton fillStyleButton)

showFillColor

public void showFillColor(FigAttribs attr,
                          JColorButton fillColorButton)

showArrowMode

public void showArrowMode(FigAttribs attr,
                          JStateButton arrowModeButton)

showArrowStyle

public void showArrowStyle(FigAttribs attr,
                           JStateButton arrowStyleButton)

showFArrowWidth

public void showFArrowWidth(FigAttribs attr,
                            javax.swing.JTextField field)

showFArrowLength

public void showFArrowLength(FigAttribs attr,
                             javax.swing.JTextField field)

showBArrowWidth

public void showBArrowWidth(FigAttribs attr,
                            javax.swing.JTextField field)

showBArrowLength

public void showBArrowLength(FigAttribs attr,
                             javax.swing.JTextField field)

showFArrowThickness

public void showFArrowThickness(FigAttribs attr,
                                javax.swing.JTextField field)

showBArrowThickness

public void showBArrowThickness(FigAttribs attr,
                                javax.swing.JTextField field)

showTextAlignment

public void showTextAlignment(FigAttribs attr,
                              JStateButton textAlignButton)

showFontSize

public void showFontSize(FigAttribs attr,
                         JNumericStateButton fontSizeButton)

showFontFlags

public void showFontFlags(FigAttribs attr,
                          javax.swing.JComboBox fontFlagChoice)

showFontFlags

public void showFontFlags(FigAttribs attr,
                          JStateButton fontFlagButton)

showCornerRadius

public void showCornerRadius(FigAttribs attr,
                             JNumericStateButton roundRectButton)

showFontName

public void showFontName(FigAttribs attr,
                         JFontButton fontButton)

showLandscapeMode

public void showLandscapeMode(FigAttribs attr,
                              javax.swing.JComboBox landscapePortraitChoice)

showJustificationMode

public void showJustificationMode(FigAttribs attr,
                                  javax.swing.JComboBox centerFlushLeftChoice)

showRotationAngle

public void showRotationAngle(FigAttribs attr,
                              JNumericStateButton rotationAngleButton)

setUpdateMode

public void setUpdateMode(boolean enable)

setUpdateStatusAll

public void setUpdateStatusAll()

setUpdateStatusNone

public void setUpdateStatusNone()

invertUpdateStatus

public void invertUpdateStatus()

addUpdateModeButtonListener

public void addUpdateModeButtonListener(java.awt.event.ActionListener AL)

showCoords

public void showCoords(java.awt.Point[] wcp,
                       javax.swing.JTextArea coordsTextArea)
display the (2400 dpi world) coordinates given by the Points in wcp[] in editable form in our coordsTextArea.


showCoords

public void showCoords(java.awt.Point[] wcp,
                       javax.swing.JTextField coordsTextField)

showCoords

public void showCoords(java.awt.Point wcp,
                       javax.swing.JTextField coordsTextField)

retrievePoints

public void retrievePoints(FigObject object,
                           javax.swing.JTextArea coordsTextArea)

retrievePoints

public void retrievePoints(FigObject object,
                           javax.swing.JTextField coordsTextField)

getCoords

public java.awt.Point[] getCoords(java.lang.String s)
parse the text from the coordsTextArea and reconstruct the world coordinates, put them into an array and return a reference to this array.


msg

public static void msg(java.lang.String msg)

dbg

public void dbg(java.lang.String msg)

main

public static void main(java.lang.String[] argv)
simple self test