All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----figPac.fEnv
Name: bgColor Type of value: Color Default value: Color.white Significance: Screen background colorIt is up to the drawgfx and drawps methods of each figure element to extract and use the entries in the table that are appropriate for it.Name: fgColor Type of value: Color Default value: Color.black Significance: Screen foreground color
Name: fillColor Type of value: Color Default value: Color.black Significance: Color used to fill polygons etc on screen
Name: arrowHeadColor Type of value: Color Default value: Color.black Significance: Color used to fill arrowheads on screen
Name: psFillGray Type of value: Double Default value: 0 Significance: Controls density of fill for polygons etc. in postscript (0=black, 1=white)
Name: useColorPs Type of value: String Default value: false Significance: Determines whether colour or grayscale fill is used in PostScript
Name: arrowHeadGray Type of value: Double Default value: 0 Significance: Controls density of fill for arrowheads in postscript
Name: headHalfWidth Type of value: Double Default value: 2 Significance: Half the width of arrowheads in points
Name: headLength Type of value: Double Default value: 6 Significance: Length of arrowheads in points
Name: lineWidth Type of value: Double Default value: 0 Significance: Width of lines drawn in points
Name: font Type of value: Font Default value: Font("Lucidasanstypewriter",Font.PLAIN, 14) Significance: The font used by labels on the screen
Name: psFont Type of value: String Default value: "Helvetica 10" Significance: The font and font size (in points) used in postscript labels.
public Object keyvalue
public Object valuekeys
public String keys[]
public fEnv()fEnv
public fEnv(Object key, Object value)
public fEnv(Object key, int value)
public fEnv(Object key, double value)
public void drawgfx(Figure fig, Hashtable env, V2V usr2pxl)
Color fillColor = (Color)( env.get("fillColor") ); double lineWidth = ((Double)( env.get("lineWidth") )).doubleValue(); int arrowMode = ((Integer)( env.get("arrowMode") )).intValue();The output of env.get() is always of class Object (the superclass of all classes in Java). It has to be cast to whatever class the value is really supposed to represent. That is the role of (Color) in the first example and (Double) in the second. The method doubleValue() in the second example converts the object of class Double to the primitive data type double, that you actually want to compute with. Similarly, The method intValue() in the third example converts the object of class Integer to the primitive data type int.
public String drawps(Figure fig, Hashtable env, V2V usr2ps)
public void startEdit(figEdit applet)endEdit
public void endEdit()endEditAndDelete
public void endEditAndDelete()configure
public void configure(String name, String Value)configure
public void configure(String name, double Value)configure
public void configure(String name, double Value[])toColor
public Color toColor(String color)
public Font toFont(String font)toDouble
public Double toDouble(String number)itemStateChanged
public void itemStateChanged(ItemEvent e)toString
public String toString()
All Packages Class Hierarchy This Package Previous Next Index