public class EditableBorderUI extends DefaultBorderUI
element, elementUI, network, THICK
Constructor and Description |
---|
EditableBorderUI(ElementUI elementUI)
Constructs this border ui with given element ui.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Rectangle |
getBounds()
Get this ui's bounds.
|
java.awt.Cursor |
getCursor(java.awt.Point p)
Get the which cursor the mouse should be when
the mouse move to specified point.
|
java.awt.Rectangle |
getNewBounds(java.awt.Cursor cursor,
java.awt.Point point)
Get the new bounds when user dragging mouse to
the specified point with this cursor.
|
void |
paintBorder(java.awt.Graphics2D g2d)
Paint the border body.
|
getShape
elementPropertyChange, getBorderInset, getColor, getElement, getElementUI, getFillColor, getStorke, getType, isAntialias, isFill, isRaised, isUnderneath, isVisible, isXormode
public EditableBorderUI(ElementUI elementUI)
elementUI
- element ui object.public void paintBorder(java.awt.Graphics2D g2d)
paintBorder
in interface BorderUI
paintBorder
in class DefaultBorderUI
g2d
- graphics object.public java.awt.Rectangle getNewBounds(java.awt.Cursor cursor, java.awt.Point point)
cursor
- the mouse cursor.point
- the new dragged locationpublic java.awt.Cursor getCursor(java.awt.Point p)
p
- the mouse point.public java.awt.Rectangle getBounds()
getBounds
in interface BorderUI
getBounds
in class DefaultBorderUI
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.