Style Intelligence v12.0

inetsoft.graph.schema
Class SchemaPainter

java.lang.Object
  extended by inetsoft.graph.schema.SchemaPainter
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
BoxPainter, CandlePainter, StockPainter

public abstract class SchemaPainter
extends Object
implements Cloneable, Serializable

SchemaPainter defines the common functions of a schema painter. It is used to render multiple measures.

See Also:
Serialized Form

Field Summary
protected  inetsoft.graph.geometry.SchemaGeometry geometry
           
 
Constructor Summary
SchemaPainter()
           
 
Method Summary
 Object clone()
          Clone the shema painter.
abstract  Shape getShape(int idx)
          Get the shape at the specified index of the schema painter.
abstract  int getShapeCount()
          Get the shape count of the schema painter.
protected  double getSize(Coordinate coord, double size, SizeFrame frame)
          Calculate the horizontal shape size.
protected  double[] getTuple(int idx, double[] tuple, double[] vars)
          Get the tuple.
abstract  void init(inetsoft.graph.geometry.SchemaGeometry geometry, Coordinate coord)
          Initialize the schema painter with geometry and coord.
abstract  void paint(Graphics2D g)
          Paint the schema painter.
abstract  void setShape(int idx, Shape shape)
          Replace the specified shape.
abstract  boolean supportsFrame(VisualFrame frame)
          Check if supports frame.
abstract  void transformScreen(AffineTransform trans)
          Transform the painter with screen affine transform.
 void transformShape(Coordinate coord, Map hints)
          Transform the painter with coordinate.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

geometry

protected inetsoft.graph.geometry.SchemaGeometry geometry
Constructor Detail

SchemaPainter

public SchemaPainter()
Method Detail

init

public abstract void init(inetsoft.graph.geometry.SchemaGeometry geometry,
                          Coordinate coord)
Initialize the schema painter with geometry and coord.

Parameters:
geometry - the specified schema geometry.
coord - the specified coord.

transformScreen

public abstract void transformScreen(AffineTransform trans)
Transform the painter with screen affine transform.


paint

public abstract void paint(Graphics2D g)
Paint the schema painter.


getShapeCount

public abstract int getShapeCount()
Get the shape count of the schema painter.


getShape

public abstract Shape getShape(int idx)
Get the shape at the specified index of the schema painter.


setShape

public abstract void setShape(int idx,
                              Shape shape)
Replace the specified shape.


supportsFrame

public abstract boolean supportsFrame(VisualFrame frame)
Check if supports frame.


getTuple

protected double[] getTuple(int idx,
                            double[] tuple,
                            double[] vars)
Get the tuple.

Parameters:
idx - the index of the tuple.
tuple - the tuple.
vars - the measures tuple.

getSize

protected double getSize(Coordinate coord,
                         double size,
                         SizeFrame frame)
Calculate the horizontal shape size.


transformShape

public void transformShape(Coordinate coord,
                           Map hints)
Transform the painter with coordinate.

Parameters:
coord - the specified coordinate.
hints - the element hints.

clone

public Object clone()
Clone the shema painter.

Overrides:
clone in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.