Style Intelligence v12.0

inetsoft.graph
Class BoundedContainer

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

public abstract class BoundedContainer
extends VContainer

A visual container that is at fixed position and size.

See Also:
Serialized Form

Constructor Summary
BoundedContainer()
           
 
Method Summary
 Rectangle2D getBounds()
          Gets the bounds of this visual in the form of a Rectangle2D object.
 Point2D getPosition()
          Gets the position of this component in the form of a point specifying the visual's bottom-left corner.
 Dimension2D getSize()
          Returns the size of this container.
 void setBounds(double x, double y, double width, double height)
          Moves and resizes this visual.
 void setPosition(Point2D pos)
          Set the position of the container in the chart's coordinate space.
 void setSize(Dimension2D size)
          Set the size of this container.
 
Methods inherited from class inetsoft.graph.VContainer
addVisual, clone, concat, getVisual, getVisualCount, paint, paintVisualizables, removeAllVisuals, removeVisual, removeVisual, scaleTo, setScreenTransform, setVisual
 
Methods inherited from class inetsoft.graph.Visualizable
compareTo, 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

BoundedContainer

public BoundedContainer()
Method Detail

getPosition

public Point2D getPosition()
Gets the position of this component in the form of a point specifying the visual's bottom-left corner. The position will be relative to the whole chart's coordinate space.


setPosition

public void setPosition(Point2D pos)
Set the position of the container in the chart's coordinate space.


getSize

public Dimension2D getSize()
Returns the size of this container.


setSize

public void setSize(Dimension2D size)
Set the size of this container.


setBounds

public void setBounds(double x,
                      double y,
                      double width,
                      double height)
Moves and resizes this visual. The new location of the bottom-left corner is specified by x and y, and the new size is specified by width and height.

Parameters:
x - the new x of this visual.
y - the new y of this visual.
width - the new width of this visual.
height - the new height of this visual.

getBounds

public 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.

Specified by:
getBounds in class Visualizable

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