Style Intelligence v12.0

inetsoft.graph.schema
Class StockPainter

java.lang.Object
  extended by inetsoft.graph.schema.SchemaPainter
      extended by inetsoft.graph.schema.StockPainter
All Implemented Interfaces:
Serializable, Cloneable

public class StockPainter
extends SchemaPainter

This schema painter renders high-low-close chart points. Three variables are required for the stock painter, in the following order: high, close, low.

See Also:
Serialized Form

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

Constructor Detail

StockPainter

public StockPainter()
Method Detail

init

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

Specified by:
init in class SchemaPainter
Parameters:
geometry - the specified schema geometry.
coord - the specified coord.

transformScreen

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

Specified by:
transformScreen in class SchemaPainter
Parameters:
trans - the specified affine transform.

paint

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

Specified by:
paint in class SchemaPainter
Parameters:
g - the specified graphics.

getShapeCount

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

Specified by:
getShapeCount in class SchemaPainter

getShape

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

Specified by:
getShape in class SchemaPainter

setShape

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

Specified by:
setShape in class SchemaPainter

supportsFrame

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

Specified by:
supportsFrame in class SchemaPainter

clone

public Object clone()
Clone the shema painter.

Overrides:
clone in class SchemaPainter

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