agg.attribute.view.impl
Class MaskedViewSetting

java.lang.Object
  extended by agg.attribute.impl.AttrObject
      extended by agg.attribute.impl.ManagedObject
          extended by agg.attribute.view.impl.ViewSetting
              extended by agg.attribute.view.impl.MaskedViewSetting
All Implemented Interfaces:
AttrViewSetting, Disposable, java.io.Serializable, java.util.Observer

public class MaskedViewSetting
extends ViewSetting

See Also:
Serialized Form

Field Summary
protected  OpenViewSetting openView
           
 
Fields inherited from class agg.attribute.view.impl.ViewSetting
observerTab
 
Fields inherited from class agg.attribute.impl.ManagedObject
manager
 
Fields inherited from class agg.attribute.impl.AttrObject
classHandlerExpr, classObject, classString, initialized
 
Constructor Summary
MaskedViewSetting(OpenViewSetting ov)
           
 
Method Summary
 void addObserver(AttrViewObserver o, AttrTuple attr)
          Adding an observer for an attribute tuple's representation.
 int convertIndexToSlot(AttrTuple attr, int index)
          Returns the slot position in the view layout for 'attr' at 'index'.
 int convertSlotToIndex(AttrTuple attr, int slot)
          Returns the index for 'attr' at 'slot', as set in this view layout.
protected  TupleFormat getFormat(AttrTuple attr)
          Getting the tuple format for a (type) tuple.
 AttrViewSetting getMaskedView()
          Returns the 'masked subview', manipulating of visibility of members (setVisibleAt(...)) affects this subview.
 AttrViewSetting getOpenView()
          Returns the 'open subview', manipulating of visibility of members (setVisibleAt(...)) only affects the other subview.
 int getSize(AttrTuple attr)
          Returns the number of members that are visible in this view.
 boolean hasObserver(AttrTuple attr)
           
 boolean isVisible(AttrTuple attr, int slot)
          Testing if the attribute member at the specified slot is visible in this view.
 void moveSlotInserting(AttrTuple attr, int srcSlot, int destSlot)
          Moves the member at "srcSlot" to "destSlot", inserting-wise.
protected  void removeFormat(AttrType type)
          Removing the format for a (type) tuple.
 void removeObserver(AttrViewObserver o, AttrTuple attr)
          Removing an observer for an attribute tuple's representation.
 void resetTuple(AttrTuple attr)
          Reset the tuple layout, so each slot number is the same as the index it contains, with all slots visible.
 void setAllVisible(AttrTuple attr, boolean b)
          Setting, if all attribute members of 'attr' should either be at once made visible or hidden.
 void setVisible(AttrTuple attr)
          Set visibility to true, if declaration type member of AttrTuple attr is visible, else - to false.
 void setVisibleAt(AttrTuple attr, boolean b, int slot)
          Setting, if the attribute member at the specified slot of this view should be visible or not.
 
Methods inherited from class agg.attribute.view.impl.ViewSetting
addObserverForTuple, dispose, finalize, fireAttrChanged, getObserversForTuple, moveSlotAppending, notifyObservers, propagateAttrEvent, removeObserverForTuple, toString
 
Methods inherited from class agg.attribute.impl.ManagedObject
getAttrManager, getManager
 
Methods inherited from class agg.attribute.impl.AttrObject
defaultToString, err, err, getInstRepr, log, log, log, logEnteredMethod, logPrintln, logPrintln, stdoutPrintOnEnter, stdoutPrintOnExit, toString, update, warn, warn, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

openView

protected OpenViewSetting openView
Constructor Detail

MaskedViewSetting

public MaskedViewSetting(OpenViewSetting ov)
Method Detail

getFormat

protected TupleFormat getFormat(AttrTuple attr)
Getting the tuple format for a (type) tuple. Format tuples are created lazily "on demand". It means that when there is no format for the specified AttrTuple yet, it is created and returned.

Specified by:
getFormat in class ViewSetting

removeFormat

protected void removeFormat(AttrType type)
Removing the format for a (type) tuple.

Specified by:
removeFormat in class ViewSetting

getOpenView

public AttrViewSetting getOpenView()
Description copied from interface: AttrViewSetting
Returns the 'open subview', manipulating of visibility of members (setVisibleAt(...)) only affects the other subview.

See Also:
AttrViewSetting.getMaskedView().

getMaskedView

public AttrViewSetting getMaskedView()
Description copied from interface: AttrViewSetting
Returns the 'masked subview', manipulating of visibility of members (setVisibleAt(...)) affects this subview.


addObserver

public void addObserver(AttrViewObserver o,
                        AttrTuple attr)
Description copied from interface: AttrViewSetting
Adding an observer for an attribute tuple's representation.


removeObserver

public void removeObserver(AttrViewObserver o,
                           AttrTuple attr)
Description copied from interface: AttrViewSetting
Removing an observer for an attribute tuple's representation.


hasObserver

public boolean hasObserver(AttrTuple attr)

convertIndexToSlot

public int convertIndexToSlot(AttrTuple attr,
                              int index)
Description copied from interface: AttrViewSetting
Returns the slot position in the view layout for 'attr' at 'index'.


convertSlotToIndex

public int convertSlotToIndex(AttrTuple attr,
                              int slot)
Description copied from interface: AttrViewSetting
Returns the index for 'attr' at 'slot', as set in this view layout.


getSize

public int getSize(AttrTuple attr)
Description copied from interface: AttrViewSetting
Returns the number of members that are visible in this view.


isVisible

public boolean isVisible(AttrTuple attr,
                         int slot)
Description copied from interface: AttrViewSetting
Testing if the attribute member at the specified slot is visible in this view.


setVisibleAt

public void setVisibleAt(AttrTuple attr,
                         boolean b,
                         int slot)
Description copied from interface: AttrViewSetting
Setting, if the attribute member at the specified slot of this view should be visible or not.


setAllVisible

public void setAllVisible(AttrTuple attr,
                          boolean b)
Description copied from interface: AttrViewSetting
Setting, if all attribute members of 'attr' should either be at once made visible or hidden.


setVisible

public void setVisible(AttrTuple attr)
Description copied from interface: AttrViewSetting
Set visibility to true, if declaration type member of AttrTuple attr is visible, else - to false.


moveSlotInserting

public void moveSlotInserting(AttrTuple attr,
                              int srcSlot,
                              int destSlot)
Description copied from interface: AttrViewSetting
Moves the member at "srcSlot" to "destSlot", inserting-wise.


resetTuple

public void resetTuple(AttrTuple attr)
Description copied from interface: AttrViewSetting
Reset the tuple layout, so each slot number is the same as the index it contains, with all slots visible.