net.sourceforge.toscanaj.view.diagram
Class SqlClauseLabelView
java.lang.Object
org.tockit.canvas.CanvasItem
net.sourceforge.toscanaj.view.diagram.LabelView
net.sourceforge.toscanaj.view.diagram.SqlClauseLabelView
- All Implemented Interfaces:
- ChangeObserver, org.tockit.events.EventBrokerListener
- public class SqlClauseLabelView
- extends LabelView
A LabelView for displaying the SQL clauses.
Field Summary |
protected static boolean |
allHidden
|
Fields inherited from class net.sourceforge.toscanaj.view.diagram.LabelView |
ABOVE, BELOW, DEFAULT_DISPLAY_LINES, diagramView, displayLines, dragMode, firstItem, labelInfo, lineHeight, MIN_DISPLAY_LINES, MOVING, nodeView, NOT_DRAGGING, observers, rect, RESIZING, scrollbarShown, SCROLLING |
Methods inherited from class net.sourceforge.toscanaj.view.diagram.LabelView |
addObserver, containsPoint, draw, getCanvasBounds, getConnectorColor, getConnectorEndPosition, getFont, getIndexOfPosition, getLabelHeight, getLabelWidth, getNodeView, getPosition, notifyObservers, processClickEvent, processDragEvent, processEvent, setFont, setScrollbarShown, startDrag, update, updateBounds |
Methods inherited from class org.tockit.canvas.CanvasItem |
hasAutoRaise |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allHidden
protected static boolean allHidden
- To do:
- this is a quick hack to get a hide all feature, should be changed
to some controller object or similar
SqlClauseLabelView
protected SqlClauseLabelView(DiagramView diagramView,
NodeView nodeView,
LabelInfo label)
setAllHidden
public static void setAllHidden(boolean allHidden)
allAreHidden
public static boolean allAreHidden()
isVisible
public boolean isVisible()
- Overrides:
isVisible
in class LabelView
getFactory
public static LabelView.LabelFactory getFactory()
getPlacement
protected int getPlacement()
- Description copied from class:
LabelView
- Returns the placement of the label (above or below the node).
Possible return values are LabelView.ABOVE or LabelView.BELOW. This is
used to draw the labels in their appropriate position.
- Specified by:
getPlacement
in class LabelView
getNumberOfEntries
public int getNumberOfEntries()
- Specified by:
getNumberOfEntries
in class LabelView
getEntryAt
public java.lang.Object getEntryAt(int position)
- Specified by:
getEntryAt
in class LabelView
highlightedInIdeal
protected boolean highlightedInIdeal()
- Specified by:
highlightedInIdeal
in class LabelView
highlightedInFilter
protected boolean highlightedInFilter()
- Specified by:
highlightedInFilter
in class LabelView
isFaded
protected boolean isFaded()
- Specified by:
isFaded
in class LabelView
updateEntries
public void updateEntries()
- Overrides:
updateEntries
in class LabelView
The ToscanaJ project