Style Intelligence v12.0

inetsoft.graph.guide.form
Class RectForm

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

public class RectForm
extends GeomForm

This is a rectangle form guide.


Constructor Summary
RectForm()
          Default constructor.
RectForm(double[] topLeft, double[] bottomRight)
          Create a rectangle from two points in logic space (scaled tuple).
RectForm(Object[] topLeft, Object[] bottomRight)
          Create a rectangle from two points specified as unscaled values.
RectForm(Rectangle2D rect)
          Create a fixed position and size rectangle.
 
Method Summary
 Visualizable createVisual(Coordinate coord)
          Create a visual object to visualize this element.
 Point2D getBottomRightPoint()
          Get the point for the bottom-right corner.
 double[] getBottomRightTuple()
          Get the tuple for the bottom-right corner.
 Object[] getBottomRightValues()
          Get the values for the bottom-right corner.
 Point2D getTopLeftPoint()
          Get the point for the top-left corner.
 double[] getTopLeftTuple()
          Get the tuple for the top-left corner.
 Object[] getTopLeftValues()
          Get the values for the top-left corner.
 boolean isIgnoreNegative()
          Check whether to ignore negative size rectangle.
 void setBottomRightPoint(Point2D point)
          Set the point for the bottom-right corner.
 void setBottomRightTuple(double[] tuple)
          Set the tuple for the bottom-right corner.
 void setBottomRightValues(Object[] values)
          Set the values for the bottom-right corner.
 void setIgnoreNegative(boolean ignore)
          Set whether to ignore negative size rectangle.
 void setTopLeftPoint(Point2D point)
          Set the point for the top-left corner.
 void setTopLeftTuple(double[] tuple)
          Set the tuple for the top-left corner.
 void setTopLeftValues(Object[] values)
          Set the values for the top-left corner.
 
Methods inherited from class inetsoft.graph.guide.form.GeomForm
isFill, setFill
 
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

RectForm

public RectForm()
Default constructor.


RectForm

public RectForm(Rectangle2D rect)
Create a fixed position and size rectangle. The values are in points in math coordinate.


RectForm

public RectForm(double[] topLeft,
                double[] bottomRight)
Create a rectangle from two points in logic space (scaled tuple).

Parameters:
topLeft - top-left tuple of a rectangle.
bottomRight - bottom-right tuple of a rectangle.

RectForm

public RectForm(Object[] topLeft,
                Object[] bottomRight)
Create a rectangle from two points specified as unscaled values.

Parameters:
topLeft - top-left unscaled tuple of a rectangle.
bottomRight - bottom-right unscaled tuple of a rectangle.
Method Detail

setTopLeftPoint

public void setTopLeftPoint(Point2D point)
Set the point for the top-left corner.

Parameters:
point - 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.

getTopLeftPoint

public Point2D getTopLeftPoint()
Get the point for the top-left corner.


setBottomRightPoint

public void setBottomRightPoint(Point2D point)
Set the point for the bottom-right corner.

Parameters:
point - 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.

getBottomRightPoint

public Point2D getBottomRightPoint()
Get the point for the bottom-right corner.


setTopLeftTuple

public void setTopLeftTuple(double[] tuple)
Set the tuple for the top-left corner.


getTopLeftTuple

public double[] getTopLeftTuple()
Get the tuple for the top-left corner.


setBottomRightTuple

public void setBottomRightTuple(double[] tuple)
Set the tuple for the bottom-right corner.


getBottomRightTuple

public double[] getBottomRightTuple()
Get the tuple for the bottom-right corner.


setTopLeftValues

public void setTopLeftValues(Object[] values)
Set the values for the top-left corner.


getTopLeftValues

public Object[] getTopLeftValues()
Get the values for the top-left corner.


setBottomRightValues

public void setBottomRightValues(Object[] values)
Set the values for the bottom-right corner.


getBottomRightValues

public Object[] getBottomRightValues()
Get the values for the bottom-right corner.


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.

setIgnoreNegative

public void setIgnoreNegative(boolean ignore)
Set whether to ignore negative size rectangle.


isIgnoreNegative

public boolean isIgnoreNegative()
Check whether to ignore negative size rectangle.


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