net.sourceforge.toscanaj.view.diagram
Class AttributeLabelView

java.lang.Object
  extended byorg.tockit.canvas.CanvasItem
      extended bynet.sourceforge.toscanaj.view.diagram.LabelView
          extended bynet.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

Nested Class Summary
 
Nested classes inherited from class net.sourceforge.toscanaj.view.diagram.LabelView
LabelView.DragMode, LabelView.LabelFactory
 
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
 
Constructor Summary
protected AttributeLabelView(DiagramView diagramView, NodeView nodeView, LabelInfo label)
          Creates a view for the given label information.
 
Method Summary
static boolean allAreHidden()
           
 java.lang.Object getEntryAt(int position)
           
 FCAElement getEntryAtPosition(java.awt.geom.Point2D canvasPosition)
           
static LabelView.LabelFactory getFactory()
           
 int getNumberOfEntries()
           
protected  int getPlacement()
          Returns LabelView.ABOVE
protected  boolean highlightedInFilter()
           
protected  boolean highlightedInIdeal()
           
protected  boolean isFaded()
           
 boolean isVisible()
           
static void setAllHidden(boolean allHidden)
           
 
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
 

Field Detail

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
Constructor Detail

AttributeLabelView

protected AttributeLabelView(DiagramView diagramView,
                             NodeView nodeView,
                             LabelInfo label)
Creates a view for the given label information.

Method Detail

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