net.sourceforge.toscanaj.view.diagram
Class AttributeLabelView
java.lang.Object
org.tockit.canvas.CanvasItem
net.sourceforge.toscanaj.view.diagram.LabelView
net.sourceforge.toscanaj.view.diagram.AttributeLabelView
- All Implemented Interfaces:
- ChangeObserver, org.tockit.events.EventBrokerListener
- public class AttributeLabelView
- extends LabelView
A LabelView for displaying the attributes.
This and the ObjectLabelView are used to distinguish between labels above
and below the nodes and the default display type (list or number).
- See Also:
ObjectLabelView
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, updateEntries |
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
AttributeLabelView
protected AttributeLabelView(DiagramView diagramView,
NodeView nodeView,
LabelInfo label)
- Creates a view for the given label information.
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()
- Returns LabelView.ABOVE
- 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
getEntryAtPosition
public FCAElement getEntryAtPosition(java.awt.geom.Point2D canvasPosition)
isFaded
protected boolean isFaded()
- Specified by:
isFaded
in class LabelView
The ToscanaJ project