| javax.swing.JPanel org.acm.seguin.uml.line.ScalablePanel
All known Subclasses: org.acm.seguin.uml.line.SizableLabel, org.acm.seguin.uml.line.EndPointPanel, org.acm.seguin.uml.RoleHolder,
ScalablePanel | abstract public class ScalablePanel extends JPanel (Code) | | Panel that can be scaled and shifted
author: Chris Seguin author: Mike Atkinson version: $Id: ScalablePanel.java,v 1.4 2003/07/29 20:51:57 mikeatkinson Exp $ |
Method Summary | |
protected double | getScale() | public Rectangle | getUnscaledBounds() | public Point | getUnscaledLocation() | public void | move(int x, int y) | public void | reshape(int x, int y, int w, int h) | public void | resize(int w, int h) | public void | resize(Dimension dim) | public void | scale(double value) | protected int | scaleInteger(int value) | public void | setBounds(int x, int y, int w, int h) | public void | setBounds(Rectangle rect) | public void | setLocation(int x, int y) | public void | setLocation(Point pt) | public void | setSize(int w, int h) | public void | setSize(Dimension dim) | public void | shift(int x, int y) | protected int | unscaleInteger(int value) |
ScalablePanel | public ScalablePanel()(Code) | | Constructor for the ScalablePanel object
|
ScalablePanel | public ScalablePanel(boolean doubleBuffered)(Code) | | Constructor for the ScalablePanel object
Parameters: doubleBuffered - Description of Parameter |
ScalablePanel | public ScalablePanel(LayoutManager layout)(Code) | | Constructor for the ScalablePanel object
Parameters: layout - Description of Parameter |
ScalablePanel | public ScalablePanel(LayoutManager layout, boolean doubleBuffered)(Code) | | Constructor for the ScalablePanel object
Parameters: layout - Description of Parameter Parameters: doubleBuffered - Description of Parameter |
getScale | protected double getScale()(Code) | | Return the scaling factor
the scaling factor |
getUnscaledBounds | public Rectangle getUnscaledBounds()(Code) | | Get the bounds without scaling factors
the rectangle containing the boundaries |
getUnscaledLocation | public Point getUnscaledLocation()(Code) | | Computes the location without the scaling factor
the unscaled location |
move | public void move(int x, int y)(Code) | | Invokes old version of setLocation
Parameters: x - Description of Parameter Parameters: y - Description of Parameter |
reshape | public void reshape(int x, int y, int w, int h)(Code) | | Description of the Method
Parameters: x - Description of Parameter Parameters: y - Description of Parameter Parameters: w - Description of Parameter Parameters: h - Description of Parameter |
resize | public void resize(int w, int h)(Code) | | Description of the Method
Parameters: w - Description of Parameter Parameters: h - Description of Parameter |
resize | public void resize(Dimension dim)(Code) | | Description of the Method
Parameters: dim - Description of Parameter |
scale | public void scale(double value)(Code) | | Scales the image
Parameters: value - the amount to scale |
scaleInteger | protected int scaleInteger(int value)(Code) | | Scale the integer
Parameters: value - the value to be converted the scaled version |
setBounds | public void setBounds(int x, int y, int w, int h)(Code) | | Sets the Bounds attribute of the ScalablePanel object
Parameters: x - The new Bounds value Parameters: y - The new Bounds value Parameters: w - The new Bounds value Parameters: h - The new Bounds value |
setBounds | public void setBounds(Rectangle rect)(Code) | | Sets the Bounds attribute of the ScalablePanel object
Parameters: rect - The new Bounds value |
setLocation | public void setLocation(int x, int y)(Code) | | Sets the Location attribute of the ScalablePanel object
Parameters: x - The new Location value Parameters: y - The new Location value |
setLocation | public void setLocation(Point pt)(Code) | | Sets the Location attribute of the ScalablePanel object
Parameters: pt - The new Location value |
setSize | public void setSize(int w, int h)(Code) | | Sets the Size attribute of the ScalablePanel object
Parameters: w - The new Size value Parameters: h - The new Size value |
setSize | public void setSize(Dimension dim)(Code) | | Sets the Size attribute of the ScalablePanel object
Parameters: dim - The new Size value |
shift | public void shift(int x, int y)(Code) | | This method moves the class diagram around on the screen
Parameters: x - the x coordinate (scaled value) Parameters: y - the y coordinate (scaled value) |
unscaleInteger | protected int unscaleInteger(int value)(Code) | | Inverse of the scaleInteger operation
Parameters: value - the input value the result of the unscape operation |
|
|