Style Intelligence v12.0

inetsoft.graph
Class VContainer

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

public abstract class VContainer
extends Visualizable

This is a container of visualizable objects.

See Also:
Serialized Form

Constructor Summary
VContainer()
           
 
Method Summary
 void addVisual(Visualizable visual)
          Add a visual object to this graph.
 Object clone()
          Make a copy of this object.
 void concat(AffineTransform trans, boolean concat)
          Apply the transformation to the screen transformation matrix of visual objects.
 Visualizable getVisual(int idx)
          Get the specified visual object.
 int getVisualCount()
          Get the number of visual objects defined in this graph.
 void paint(Graphics2D g)
          Paint the container on the graphics output.
protected  void paintVisualizables(Graphics2D g, List visuals)
          Paint all visual objects in the container.
 void removeAllVisuals()
          Remove all visual objects.
 void removeVisual(int idx)
          Remove the visual object at the specified position.
 void removeVisual(Visualizable visual)
          Remove the visual object.
 void scaleTo(double sx, double sy)
          Apply a scale so the transformations performed in the chart coordinate space (1000x1000) are transformed to the graphic output space.
 void setScreenTransform(AffineTransform trans)
          Set the transformation to map chart coordinate to screen coordinate.
 void setVisual(int idx, Visualizable visual)
          Set a visual object to the specified position.
 
Methods inherited from class inetsoft.graph.Visualizable
compareTo, getBounds, getGraphable, getMinHeight, getMinHeight0, getMinWidth, getMinWidth0, getPreferredHeight, getPreferredHeight0, getPreferredWidth, getPreferredWidth0, getScreenTransform, getZIndex, invalidate, setZIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VContainer

public VContainer()
Method Detail

paint

public void paint(Graphics2D g)
Paint the container on the graphics output.

Specified by:
paint in class Visualizable

paintVisualizables

protected void paintVisualizables(Graphics2D g,
                                  List visuals)
Paint all visual objects in the container. Graphics is already transformed to be at the top-left corner of the container.


setScreenTransform

public void setScreenTransform(AffineTransform trans)
Set the transformation to map chart coordinate to screen coordinate.

Overrides:
setScreenTransform in class Visualizable

concat

public void concat(AffineTransform trans,
                   boolean concat)
Apply the transformation to the screen transformation matrix of visual objects.

Parameters:
concat - true to concatenate and false to prepend the transform.

scaleTo

public void scaleTo(double sx,
                    double sy)
Apply a scale so the transformations performed in the chart coordinate space (1000x1000) are transformed to the graphic output space.

Parameters:
sx - the scale to transfrom 1000 to the physical width.
sy - the scale to transfrom 1000 to the physical height.

addVisual

public void addVisual(Visualizable visual)
Add a visual object to this graph. Visual classes are defined in inetsoft.graph.visual package.


setVisual

public void setVisual(int idx,
                      Visualizable visual)
Set a visual object to the specified position.


getVisual

public Visualizable getVisual(int idx)
Get the specified visual object.


getVisualCount

public int getVisualCount()
Get the number of visual objects defined in this graph.


removeVisual

public void removeVisual(int idx)
Remove the visual object at the specified position.


removeVisual

public void removeVisual(Visualizable visual)
Remove the visual object.


removeAllVisuals

public void removeAllVisuals()
Remove all visual objects.


clone

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

Overrides:
clone in class Visualizable

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