com.infoengine.webject.img
Class IMGWebject

java.lang.Object
  extended bycom.infoengine.webject.Webject
      extended bycom.infoengine.webject.img.IMGWebject
Direct Known Subclasses:
BarGraph, LineGraph, PieChart

abstract class IMGWebject
extends Webject


Field Summary
protected  Color bgColor
           
protected static int CHAR_HEIGHT
           
protected static int CHAR_WIDTH
           
protected  int decimalPlaces
           
private static int DEFAULT_HEIGHT
           
private static int DEFAULT_INSET
           
private static int DEFAULT_WIDTH
           
protected  int height
           
protected  int insetB
           
protected  int insetL
           
protected  int insetR
           
protected  int insetT
           
protected  Element mainGraphic
           
protected static String RESOURCE
           
protected  Element root
           
protected  Document svg
           
protected static String svgNS
           
protected  Task task
           
protected static int TICK_WIDTH
           
protected  Color txtColor
           
protected  Webject webject
           
protected  int width
           
 
Constructor Summary
(package private) IMGWebject()
           
 
Method Summary
protected  void append(Element child)
           
protected  void append(Element parent, Element child)
           
protected  Element createCircle(int cx, int cy, int r, Color c, String stroke)
           
protected  Element createGraphic(String id)
           
protected  Element createPath(Color c, String stroke, String d)
           
protected  Element createPolyLine(Color c, String stroke, String points)
           
protected  Element createText(int x, int y, String anchor, String text)
           
protected  String formatDouble(double d)
           
protected  Color getColor(String colorDef)
           
protected  Color getColor(Webject w, String parm, Color def)
           
protected  void getDecimalPlaces(Webject w)
           
protected  void getDimensions(Webject w)
           
protected  double getDouble(Webject w, String parm, double def)
           
private  int getInset(Webject w, String parm)
           
protected  void getInsets(Webject w)
           
protected  int getInteger(Webject w, String parm, int def)
           
protected  String getRGBHexString(Color c)
           
protected  void setTask(Task t)
           
protected  void startSVG(String rootId)
           
protected  void writeJPEG()
           
 
Methods inherited from class com.infoengine.webject.Webject
booleanParam, invoke
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

svgNS

protected static final String svgNS
See Also:
Constant Field Values

RESOURCE

protected static final String RESOURCE
See Also:
Constant Field Values

DEFAULT_INSET

private static final int DEFAULT_INSET
See Also:
Constant Field Values

DEFAULT_WIDTH

private static final int DEFAULT_WIDTH
See Also:
Constant Field Values

DEFAULT_HEIGHT

private static final int DEFAULT_HEIGHT
See Also:
Constant Field Values

insetL

protected int insetL

insetR

protected int insetR

insetT

protected int insetT

insetB

protected int insetB

width

protected int width

height

protected int height

decimalPlaces

protected int decimalPlaces

bgColor

protected Color bgColor

txtColor

protected Color txtColor

CHAR_WIDTH

protected static final int CHAR_WIDTH
See Also:
Constant Field Values

CHAR_HEIGHT

protected static final int CHAR_HEIGHT
See Also:
Constant Field Values

TICK_WIDTH

protected static final int TICK_WIDTH
See Also:
Constant Field Values

task

protected Task task

webject

protected Webject webject

svg

protected Document svg

root

protected Element root

mainGraphic

protected Element mainGraphic
Constructor Detail

IMGWebject

IMGWebject()
Method Detail

setTask

protected void setTask(Task t)
                throws IEException
Throws:
IEException

getInteger

protected int getInteger(Webject w,
                         String parm,
                         int def)
                  throws IEException
Throws:
IEException

getDouble

protected double getDouble(Webject w,
                           String parm,
                           double def)
                    throws IEException
Throws:
IEException

getDimensions

protected void getDimensions(Webject w)
                      throws IEException
Throws:
IEException

getInset

private int getInset(Webject w,
                     String parm)
              throws IEException
Throws:
IEException

getInsets

protected void getInsets(Webject w)
                  throws IEException
Throws:
IEException

getDecimalPlaces

protected void getDecimalPlaces(Webject w)
                         throws IEException
Throws:
IEException

getRGBHexString

protected String getRGBHexString(Color c)

getColor

protected Color getColor(Webject w,
                         String parm,
                         Color def)
                  throws IEException
Throws:
IEException

getColor

protected Color getColor(String colorDef)
                  throws IEException
Throws:
IEException

formatDouble

protected String formatDouble(double d)

writeJPEG

protected void writeJPEG()
                  throws Exception
Throws:
Exception

startSVG

protected void startSVG(String rootId)

createGraphic

protected Element createGraphic(String id)

append

protected void append(Element child)

append

protected void append(Element parent,
                      Element child)

createPath

protected Element createPath(Color c,
                             String stroke,
                             String d)

createPolyLine

protected Element createPolyLine(Color c,
                                 String stroke,
                                 String points)

createCircle

protected Element createCircle(int cx,
                               int cy,
                               int r,
                               Color c,
                               String stroke)

createText

protected Element createText(int x,
                             int y,
                             String anchor,
                             String text)