Style Intelligence v12.0

inetsoft.graph.guide.form
Class ShapeForm

java.lang.Object
  extended by inetsoft.graph.Graphable
      extended by inetsoft.graph.guide.form.GraphForm
          extended by inetsoft.graph.guide.form.ShapeForm
All Implemented Interfaces:
Cloneable

public class ShapeForm
extends GraphForm

This form can be used to add a GShape to a graph.


Constructor Summary
ShapeForm()
          Default constructor.
ShapeForm(GShape shape)
          Create a form to paint a GShape.
 
Method Summary
 Visualizable createVisual(Coordinate coord)
          Create a visual object to visualize this element.
 int getAlignmentX()
          Gets the the horizontal alignment.
 int getAlignmentY()
          Gets the the vertical alignment.
 Point2D getPoint()
          Get the fixed position for the label.
 double getRotation()
          Get the shape rotation angle.
 GShape getShape()
          Get the shape.
 Dimension2D getSize()
          Get the size of the shape.
 double[] getTuple()
          Get the position tuple value.
 Object[] getValues()
          Get the position values value.
 void setAlignmentX(int alignx)
          Set the the horizontal alignment.
 void setAlignmentY(int aligny)
          Set the the vertical alignment.
 void setPoint(Point2D pos)
          Set the fixed position for the label.
 void setRotation(double degree)
          Rotate the shape.
 void setShape(GShape shape)
          Set the shape.
 void setSize(Dimension2D size)
          Set the size of the shape.
 void setTuple(double[] tuple)
          Set the tuple for obtaining the position for the label in the coordinate.
 void setValues(Object[] values)
          Set the values for obtaining the position for the label in the coordinate.
 
Methods inherited from class inetsoft.graph.guide.form.GraphForm
createVisuals, getColor, getLine, getMeasure, getPosition, getXOffset, getYOffset, getZIndex, isInPlot, isVisible, scale, setColor, setInPlot, setLine, setMeasure, setXOffset, setYOffset, setZIndex
 
Methods inherited from class inetsoft.graph.Graphable
getHint, getHints, setHint, setHints, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShapeForm

public ShapeForm()
Default constructor.


ShapeForm

public ShapeForm(GShape shape)
Create a form to paint a GShape.

Method Detail

setShape

public void setShape(GShape shape)
Set the shape.


getShape

public GShape getShape()
Get the shape.


setSize

public void setSize(Dimension2D size)
Set the size of the shape.


getSize

public Dimension2D getSize()
Get the size of the shape.


setTuple

public void setTuple(double[] tuple)
Set the tuple for obtaining the position for the label in the coordinate. The tuple contains scaled values.


getTuple

public double[] getTuple()
Get the position tuple value.


setValues

public void setValues(Object[] values)
Set the values for obtaining the position for the label in the coordinate. The values are scaled to get the logic space.


getValues

public Object[] getValues()
Get the position values value.


setPoint

public void setPoint(Point2D pos)
Set the fixed position for the label.

Parameters:
pos - the point location in graph. If the value is between 0 and 1 (non-inclusive), it's treated as a proportion of the width/height. If the value is negative, it's the distance from the right/top of the graph.

getPoint

public Point2D getPoint()
Get the fixed position for the label.


setAlignmentX

public void setAlignmentX(int alignx)
Set the the horizontal alignment.


setAlignmentY

public void setAlignmentY(int aligny)
Set the the vertical alignment.


getAlignmentX

public int getAlignmentX()
Gets the the horizontal alignment.


getAlignmentY

public int getAlignmentY()
Gets the the vertical alignment.


createVisual

public Visualizable createVisual(Coordinate coord)
Create a visual object to visualize this element.

Specified by:
createVisual in class GraphForm
Parameters:
coord - the coordinate the visual object is plotted on.
Returns:
the new visual object.

setRotation

public void setRotation(double degree)
Rotate the shape. The shape is rotated at the center of the shape.

Parameters:
degree - angle in degrees.

getRotation

public double getRotation()
Get the shape rotation angle.


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