| javax.swing.JPanel org.acm.seguin.uml.line.ScalablePanel org.acm.seguin.uml.RoleHolder
RoleHolder | public class RoleHolder extends ScalablePanel (Code) | | Holds the roles associated with a type
author: Chris Seguin author: Mike Atkinson |
RoleHolder | public RoleHolder(UMLMouseAdapter popupMenuListener, DragPanelAdapter panelDragAdapter)(Code) | | Constructor for the RoleHolder object
Parameters: popupMenuListener - listener that launches the popup menu Parameters: panelDragAdapter - listener that drags the type |
add | public void add(String msg)(Code) | | Adds a role
Parameters: msg - the role name |
getMinimumSize | public Dimension getMinimumSize()(Code) | | Gets the minimum size
The minimum size for this object |
getPreferredSize | public Dimension getPreferredSize()(Code) | | Gets the preferred size
the preferred size for this object |
hasAny | public boolean hasAny()(Code) | | Determines if there are any roles
Description of the Returned Value |
print | public void print(Graphics g, int x, int y)(Code) | | Print the roles
Parameters: g - Description of Parameter Parameters: x - Description of Parameter Parameters: y - Description of Parameter |
resetWidth | public void resetWidth(int newWidth)(Code) | | Reset width
Parameters: newWidth - the new width |
scale | public void scale(double value)(Code) | | Sets the scaling factor
Parameters: value - scaling factor |
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)
|
|
|