|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nwoods.jgo.JGoObject
com.nwoods.jgo.JGoArea
com.nwoods.jgo.instruments.Meter
com.nwoods.jgo.instruments.MultipleIndicatorMeter
A Meter designed to maintain an array of Indicators.
| Field Summary | |
static int |
InsertedIndicator
This is a JGoObject update subhint. |
static int |
RemovedIndicator
This is a JGoObject update subhint. |
static int |
ReplacedIndicator
This is a JGoObject update subhint. |
| Fields inherited from class com.nwoods.jgo.instruments.Meter |
ChangedBackground, ChangedIndicator, ChangedInsets, ChangedLabel, ChangedLabelRelativeSpot, ChangedLabelSpot, ChangedOrientation, ChangedScale, OrientationHorizontal, OrientationVertical |
| Fields inherited from class com.nwoods.jgo.JGoArea |
ChangedPickableBackground |
| Fields inherited from class com.nwoods.jgo.JGoObject |
Bottom, BottomCenter, BottomLeft, BottomMiddle, BottomRight, Center, CenterLeft, CenterRight, Changed4ResizeHandles, ChangedAutoRescale, ChangedBrush, ChangedDraggable, ChangedDragsNode, ChangedGeometry, ChangedGrabChildSelection, ChangedInitializing, ChangedPen, ChangedResizable, ChangedSelectable, ChangedUpdatePartner, ChangedVisible, ChangedZOrder, LastChangedHint, Left, LeftCenter, NoHandle, NoSpot, NumReservedHandles, RepaintAll, Right, RightCenter, SideLeft, SideRight, Top, TopCenter, TopLeft, TopMiddle, TopRight |
| Constructor Summary | |
MultipleIndicatorMeter()
Construct a meter with no scale or indicator. |
|
| Method Summary | |
void |
addIndicator(AbstractIndicator ind)
Add an AbstractIndicator to the list. |
void |
changeValue(JGoDocumentChangedEdit e,
boolean undo)
Handle undo and redo changes. |
void |
copyNewValueForRedo(JGoDocumentChangedEdit e)
This method is called when a JGoDocumentChangedEdit is created for a JGoDocumentEvent.CHANGED event, when a JGoObject has been changed. |
JGoObject |
copyObject(JGoCopyEnvironment env)
Make sure references to the children, including the indicators, are referring to newly copied objects. |
AbstractIndicator |
getIndicator()
Gets the main AbstractIndicator, the first one. |
AbstractIndicator |
getIndicator(int index)
Get an AbstractIndicator at a particular position in the list. |
int |
getIndicatorCount()
Gets the number of Indicators being displayed. |
java.util.ArrayList |
getIndicators()
A read-only list containing all the Indicators associated with this MultipleIndicatorMeter. |
void |
insertIndicator(int index,
AbstractIndicator ind)
Add an AbstractIndicator at a particular position in the list. |
void |
removeIndicator(AbstractIndicator ind)
Remove an AbstractIndicator from the list. |
JGoObject |
removeObjectAtPos(JGoListPosition pos)
If any part is removed from this group, be sure to remove any references in local fields. |
void |
setIndicator(AbstractIndicator value)
Set the main AbstractIndicator, the first one. |
void |
setIndicator(int index,
AbstractIndicator ind)
Replace an AbstractIndicator at a particular position in the list. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int InsertedIndicator
public static final int RemovedIndicator
public static final int ReplacedIndicator
| Constructor Detail |
public MultipleIndicatorMeter()
| Method Detail |
public AbstractIndicator getIndicator()
getIndicator in class Meterpublic void setIndicator(AbstractIndicator value)
setIndicator in class Metervalue - an AbstractIndicator that replaces the first onepublic java.util.ArrayList getIndicators()
public void addIndicator(AbstractIndicator ind)
ind - an AbstractIndicator
public void insertIndicator(int index,
AbstractIndicator ind)
index - a non-negative index that is less than or equal to the number of indicatorsind - an AbstractIndicatorpublic void removeIndicator(AbstractIndicator ind)
ind - an AbstractIndicator; if not present, this is a no-op.public AbstractIndicator getIndicator(int index)
index - a non-negative index that is less than the getIndicatorCount()
public void setIndicator(int index,
AbstractIndicator ind)
index - a non-negative index that is less than the getIndicatorCount()ind - an AbstractIndicatorpublic int getIndicatorCount()
public JGoObject copyObject(JGoCopyEnvironment env)
copyObject in class Meterenv - the environment for the copy operation - keeps track of copied objects.
public JGoObject removeObjectAtPos(JGoListPosition pos)
removeObjectAtPos in interface JGoObjectCollectionremoveObjectAtPos in class Meterpos - a JGoListPosition in this areapublic void copyNewValueForRedo(JGoDocumentChangedEdit e)
JGoObjectJust as the previous/old value/state information is stored as one or both of an integer and an Object, the new value/state information may be stored as either or both of an integer or an Object.
The responsibility for copying rests with the document event listener rather than the code calling JGoObject.update for efficiency when there is no undo/redo manager.
copyNewValueForRedo in class Meter
public void changeValue(JGoDocumentChangedEdit e,
boolean undo)
changeValue in class Metere - undo -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||