jacquard 1.12.0 by The Web Engineering Factory and Toolworks

uk.co.weft.graphic
Class DrillThruPie

java.lang.Object
  extended byuk.co.weft.graphic.MappedImage
      extended byuk.co.weft.graphic.DrillThruPie
All Implemented Interfaces:
java.lang.Runnable

public class DrillThruPie
extends MappedImage

A pie-chart in which the elements are selectable so that the user can 'drill down' to further representations of the data. Lots and lots of paramaters all declared as public instance variables so that the creator can set them. If setting (any of) these you must set them before calling getMarkup().

Version:
$Revision: 1.1.4.1 $ This revision: $Author: simon $
Author:
Simon Brooke
See Also:
DrillThruGraph

Field Summary
 java.awt.Color background
          The colour of my background
 java.lang.String baseURL
          The string which, when the value from the id data item of my data set is appended, will make a valid URL for the drill-through target
 java.lang.String colourName
          The name of the data item in the data set which contains the specification of the colour for the bar as a 24 bit RGB value
protected  Contexts data
          The one thing I must have: some data to represent
 java.lang.String dataName
          The name of the data item in the data set which contains the data to be graphed
 java.awt.Color defaultColour
          The colour to paint segments for which we don't have a valid colour
 boolean doLabel
          Whether to provide labels for the bars
 boolean doOutline
          Whether to provide an outline for the segments
 java.lang.String idName
          The name of the data item in the data set which uniquely identifies a record
 java.awt.Color labelColour
          The colour to write the labels
 java.awt.Font labelFont
          The font to write the labels in
 java.lang.String labelName
          The name of the data item in the data set which identifies a record for humans
 java.awt.Color outlineColour
          The colour to paint the outlines of segments
 int thickness
          The thickness of my pie
 java.net.URL urlContext
          A URL context helps make the whole thing more portable
 
Fields inherited from class uk.co.weft.graphic.MappedImage
areas, attributes, expectancy, height, id, mappedImageIdToken, width
 
Constructor Summary
DrillThruPie(Contexts data)
          Create a drill-through pie to represent the data contained in these contexts
DrillThruPie(Contexts data, int width, int height)
          Create a drill-through pie to represent the data contained in these contexts, with this width and this height
DrillThruPie(java.sql.ResultSet rs)
          Create a drill-through pie to represent the data contained in this result-set.
DrillThruPie(java.sql.ResultSet rs, int width, int height)
          Create a drill-through pie to represent the data contained in these contexts, with this width and this height
 
Method Summary
 java.lang.String getMap(java.lang.String mapid)
          create my map tag and return it.
 
Methods inherited from class uk.co.weft.graphic.MappedImage
addArea, addAttribute, get, getGraphics, getImage, getMarkup, getRenderedImage, maybePaintImage, run, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

background

public java.awt.Color background
The colour of my background


defaultColour

public java.awt.Color defaultColour
The colour to paint segments for which we don't have a valid colour


labelColour

public java.awt.Color labelColour
The colour to write the labels


outlineColour

public java.awt.Color outlineColour
The colour to paint the outlines of segments


labelFont

public java.awt.Font labelFont
The font to write the labels in


baseURL

public java.lang.String baseURL
The string which, when the value from the id data item of my data set is appended, will make a valid URL for the drill-through target


colourName

public java.lang.String colourName
The name of the data item in the data set which contains the specification of the colour for the bar as a 24 bit RGB value


dataName

public java.lang.String dataName
The name of the data item in the data set which contains the data to be graphed


idName

public java.lang.String idName
The name of the data item in the data set which uniquely identifies a record


labelName

public java.lang.String labelName
The name of the data item in the data set which identifies a record for humans


urlContext

public java.net.URL urlContext
A URL context helps make the whole thing more portable


doLabel

public boolean doLabel
Whether to provide labels for the bars


doOutline

public boolean doOutline
Whether to provide an outline for the segments


thickness

public int thickness
The thickness of my pie


data

protected Contexts data
The one thing I must have: some data to represent

Constructor Detail

DrillThruPie

public DrillThruPie(Contexts data)
             throws DataFormatException
Create a drill-through pie to represent the data contained in these contexts


DrillThruPie

public DrillThruPie(Contexts data,
                    int width,
                    int height)
             throws DataFormatException
Create a drill-through pie to represent the data contained in these contexts, with this width and this height


DrillThruPie

public DrillThruPie(java.sql.ResultSet rs)
             throws DataFormatException,
                    DataStoreException
Create a drill-through pie to represent the data contained in this result-set.


DrillThruPie

public DrillThruPie(java.sql.ResultSet rs,
                    int width,
                    int height)
             throws DataFormatException,
                    DataStoreException
Create a drill-through pie to represent the data contained in these contexts, with this width and this height

Method Detail

getMap

public java.lang.String getMap(java.lang.String mapid)
                        throws java.lang.Exception
create my map tag and return it. In this case I paint the image in this method — because, frankly, it's easier to do so.

Overrides:
getMap in class MappedImage
Throws:
java.lang.Exception

jacquard 1.12.0 by The Web Engineering Factory and Toolworks