| javax.swing.JPanel org.acm.seguin.uml.line.ScalablePanel org.acm.seguin.uml.line.SizableLabel
SizableLabel | public class SizableLabel extends ScalablePanel (Code) | | Creates a label that can be resized by setting it's scaling factor.
author: Chris Seguin |
SizableLabel | public SizableLabel()(Code) | | Constructor for the SizableLabel object
|
SizableLabel | public SizableLabel(String init)(Code) | | Constructor for the SizableLabel object
Parameters: init - Description of Parameter |
getPreferredSize | public Dimension getPreferredSize()(Code) | | Gets the PreferredSize attribute of the SizableLabel object
The PreferredSize value |
getText | public String getText()(Code) | | Gets the Text attribute of the SizableLabel object
The Text value |
paint | public void paint(Graphics g)(Code) | | Paints the sizable label
Parameters: g - the graphics area to print in |
print | public void print(Graphics g, int x, int y)(Code) | | Prints the label at the proper location
Parameters: g - the graphics object Parameters: x - the x coordinate Parameters: y - the y coordinate |
scale | public void scale(double value)(Code) | | Scales the image
Parameters: value - the amount to scale |
setSLFont | public void setSLFont(Font value)(Code) | | Sets the Font attribute of the SizableLabel object
Parameters: value - The new Font value |
setSLForeground | public void setSLForeground(Color value)(Code) | | Sets the Foreground attribute of the SizableLabel object
Parameters: value - The new Foreground value |
setSLHorizontalAlignment | public void setSLHorizontalAlignment(int value)(Code) | | Sets the HorizontalAlignment attribute of the SizableLabel object
Parameters: value - The new HorizontalAlignment value |
setText | public void setText(String value)(Code) | | Sets the Text attribute of the SizableLabel object
Parameters: value - The new Text value |
Methods inherited from org.acm.seguin.uml.line.ScalablePanel | protected double getScale()(Code)(Java Doc) public Rectangle getUnscaledBounds()(Code)(Java Doc) public Point getUnscaledLocation()(Code)(Java Doc) public void move(int x, int y)(Code)(Java Doc) public void reshape(int x, int y, int w, int h)(Code)(Java Doc) public void resize(int w, int h)(Code)(Java Doc) public void resize(Dimension dim)(Code)(Java Doc) public void scale(double value)(Code)(Java Doc) protected int scaleInteger(int value)(Code)(Java Doc) public void setBounds(int x, int y, int w, int h)(Code)(Java Doc) public void setBounds(Rectangle rect)(Code)(Java Doc) public void setLocation(int x, int y)(Code)(Java Doc) public void setLocation(Point pt)(Code)(Java Doc) public void setSize(int w, int h)(Code)(Java Doc) public void setSize(Dimension dim)(Code)(Java Doc) public void shift(int x, int y)(Code)(Java Doc) protected int unscaleInteger(int value)(Code)(Java Doc)
|
|
|