Style Intelligence v12.0

inetsoft.graph
Class Visualizable

java.lang.Object
  extended by inetsoft.graph.Visualizable
All Implemented Interfaces:
inetsoft.graph.internal.ILayout, Serializable, Cloneable, Comparable
Direct Known Subclasses:
BoundedVisualizable, VContainer

public abstract class Visualizable
extends Object
implements inetsoft.graph.internal.ILayout, Comparable

This class defines the common interface for all visualizable objects.

See Also:
Serialized Form

Constructor Summary
Visualizable()
           
 
Method Summary
 Object clone()
          Make a copy of this object.
 int compareTo(Object obj)
          Compare with another visualizable according to the drawing order.
abstract  Rectangle2D getBounds()
          Gets the bounds of this visual in the form of a Rectangle2D object.
 Graphable getGraphable()
          Get the graphable object that produced this visualizable.
 double getMinHeight()
          Get the minimum height of this visualizable.
protected abstract  double getMinHeight0()
          Get the minimum height of this visualizable.
 double getMinWidth()
          Get the minimum width of this visualizable.
protected abstract  double getMinWidth0()
          Get the minimum width of this visualizable.
 double getPreferredHeight()
          Get the preferred height of this visualizable.
protected abstract  double getPreferredHeight0()
          Get the preferred height of this visualizable.
 double getPreferredWidth()
          Get the preferred width of this visualizable.
protected abstract  double getPreferredWidth0()
          Get the preferred width of this visualizable.
 AffineTransform getScreenTransform()
          Get the transformation to map chart coordinate to screen coordinate.
 int getZIndex()
          Get z-index property.
 void invalidate()
          Clear cached information.
abstract  void paint(Graphics2D g)
          Paint the visual object on the graphics.
 void setScreenTransform(AffineTransform trans)
          Set the transformation to map chart coordinate to screen coordinate.
 void setZIndex(int zIndex)
          The z-index property sets the stack order of a visual.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Visualizable

public Visualizable()
Method Detail

setScreenTransform

public void setScreenTransform(AffineTransform trans)
Set the transformation to map chart coordinate to screen coordinate. The transformation is only applied to the positions and not the text.


getScreenTransform

public AffineTransform getScreenTransform()
Get the transformation to map chart coordinate to screen coordinate.


getBounds

public abstract Rectangle2D getBounds()
Gets the bounds of this visual in the form of a Rectangle2D object. The bounds specify this visual's width, height, and location relative to the whole graph.


getZIndex

public int getZIndex()
Get z-index property.


setZIndex

public void setZIndex(int zIndex)
The z-index property sets the stack order of a visual. A visual with greater stack order is always in front of another visual with lower stack order.


getPreferredWidth

public final double getPreferredWidth()
Get the preferred width of this visualizable.

Specified by:
getPreferredWidth in interface inetsoft.graph.internal.ILayout

getPreferredHeight

public final double getPreferredHeight()
Get the preferred height of this visualizable.

Specified by:
getPreferredHeight in interface inetsoft.graph.internal.ILayout

getMinWidth

public final double getMinWidth()
Get the minimum width of this visualizable.

Specified by:
getMinWidth in interface inetsoft.graph.internal.ILayout

getMinHeight

public final double getMinHeight()
Get the minimum height of this visualizable.

Specified by:
getMinHeight in interface inetsoft.graph.internal.ILayout

getPreferredWidth0

protected abstract double getPreferredWidth0()
Get the preferred width of this visualizable.


getPreferredHeight0

protected abstract double getPreferredHeight0()
Get the preferred height of this visualizable.


getMinWidth0

protected abstract double getMinWidth0()
Get the minimum width of this visualizable.


getMinHeight0

protected abstract double getMinHeight0()
Get the minimum height of this visualizable.


paint

public abstract void paint(Graphics2D g)
Paint the visual object on the graphics.


getGraphable

public Graphable getGraphable()
Get the graphable object that produced this visualizable.


clone

public Object clone()
Make a copy of this object.

Overrides:
clone in class Object

invalidate

public void invalidate()
Clear cached information.


compareTo

public int compareTo(Object obj)
Compare with another visualizable according to the drawing order.

Specified by:
compareTo in interface Comparable

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