| org.netbeans.modules.sql.framework.ui.graph.impl.CanvasArea
All known Subclasses: org.netbeans.modules.sql.framework.ui.graph.impl.HeaderCellArea, org.netbeans.modules.sql.framework.ui.graph.impl.ToolBarItemArea, org.netbeans.modules.sql.framework.ui.graph.impl.TitleArea, org.netbeans.modules.sql.framework.ui.graph.impl.ToolBarArea, org.netbeans.modules.sql.framework.ui.graph.impl.TableHeaderArea, org.netbeans.modules.sql.framework.ui.graph.impl.CellArea, org.netbeans.modules.sql.framework.ui.graph.impl.TableArea, org.netbeans.modules.sql.framework.ui.view.graph.ParenthesisCheckBoxArea, org.netbeans.modules.sql.framework.ui.graph.impl.ListArea, org.netbeans.modules.sql.framework.ui.graph.impl.BasicCellArea, org.netbeans.modules.sql.framework.ui.graph.impl.BasicCanvasArea, org.netbeans.modules.sql.framework.ui.graph.impl.ColumnPortArea, org.netbeans.modules.sql.framework.ui.graph.impl.BasicComboBoxArea, org.netbeans.modules.sql.framework.ui.graph.impl.ColumnArea,
CanvasArea | public class CanvasArea extends JGoArea implements ICanvasInterface(Code) | | author: Ritesh Adval version: $Revision$ |
Method Summary | |
protected void | addLinks(IGraphPort gPort, List<JGoLink> list) | public void | addPropertyChangeListener(PropertyChangeListener l) | protected synchronized void | firePropertyChangeEvent(String propertyName, Object oldValue, Object newValue) | protected void | geometryChange(Rectangle prevRect) | public Insets | getInsets() | public int | getMaximumHeight() | public int | getMaximumWidth() | public int | getMinimumHeight() | public int | getMinimumWidth() | public String | getToolTipText() | protected Rectangle | handleResize(Graphics2D g, JGoView view, Rectangle origRect, Point newPoint, int whichHandle, int event, int minWidth, int minHeight) Overrides default implementation of handleResize to enforce minimum dimensions when
user attempts to resize an object. | public void | layoutChildren() | public void | removeAll() | public void | removePropertyChangeListener(PropertyChangeListener l) | public void | setInsets(Insets insets) | public void | setToolTipText(String tTip) |
insets | protected Insets insets(Code) | | The insets around this area
|
CanvasArea | public CanvasArea()(Code) | | Creates a new instance of CanvasArea
|
addLinks | protected void addLinks(IGraphPort gPort, List<JGoLink> list)(Code) | | add link of a port in the list
Parameters: gPort - port Parameters: list - list |
addPropertyChangeListener | public void addPropertyChangeListener(PropertyChangeListener l)(Code) | | add a property change listener
Parameters: l - listener |
firePropertyChangeEvent | protected synchronized void firePropertyChangeEvent(String propertyName, Object oldValue, Object newValue)(Code) | | |
geometryChange | protected void geometryChange(Rectangle prevRect)(Code) | | handle geometry change
Parameters: prevRect - previous bounds rectangle |
getInsets | public Insets getInsets()(Code) | | get the insets
insets |
getMaximumHeight | public int getMaximumHeight()(Code) | | get maximum height
max height |
getMaximumWidth | public int getMaximumWidth()(Code) | | get the maximum width
max width |
getMinimumHeight | public int getMinimumHeight()(Code) | | get the minimum height
min height |
getMinimumWidth | public int getMinimumWidth()(Code) | | get the minimum width
min width |
getToolTipText | public String getToolTipText()(Code) | | get the tooltip text
tooltip text |
handleResize | protected Rectangle handleResize(Graphics2D g, JGoView view, Rectangle origRect, Point newPoint, int whichHandle, int event, int minWidth, int minHeight)(Code) | | Overrides default implementation of handleResize to enforce minimum dimensions when
user attempts to resize an object.
Parameters: g - the graphics context to draw on Parameters: view - the view we're being resizing in Parameters: origRect - the object's original bounding rectangle Parameters: newPoint - the location of the new point Parameters: whichHandle - the handle number of the point being moved Parameters: event - one of: JGoView.EventMouseUp, JGoView.EventMouseMove,JGoView.EventMouseDown Parameters: minWidth - the minimum width of the object (defaults to zero) Parameters: minHeight - the minimum height of the object (defaults to zero) Rectangle representing location and dimension of resize outline; null ifoutline is to be handled by application |
layoutChildren | public void layoutChildren()(Code) | | layout the children
|
removeAll | public void removeAll()(Code) | | remove all the children from this area
|
removePropertyChangeListener | public void removePropertyChangeListener(PropertyChangeListener l)(Code) | | remove a property change listener
Parameters: l - listener |
setInsets | public void setInsets(Insets insets)(Code) | | set the insets of this area
Parameters: insets - - |
setToolTipText | public void setToolTipText(String tTip)(Code) | | set the tool tip
Parameters: toolTip - |
|
|