All Packages Class Hierarchy This Package Previous Next Index
Interface jclass.chart.Changeable
- public interface Changeable
The Changeable interface is used as a template for
objects that have a changed flag or changed semantic
involving some kind of recalculation. This is very
common inside JCChart. All ChartRegion derived objects
make use of Changeable, either by directly
implementing the interface or by deriving from TrackChange
(an abstract class that implements Changeable).
-
BASIC_CHANGE_MASK
-
-
LAYOUT
-
-
NO_CHANGE
-
-
NOTIFY_AXES_RECALC
-
-
NOTIFY_AXES_REDRAW
-
-
NOTIFY_CA_RECALC
-
-
NOTIFY_CA_REDRAW
-
-
NOTIFY_LEGEND_RECALC
-
-
NOTIFY_LEGEND_REDRAW
-
-
NOTIFY_PARENT_LAYOUT
-
-
RECALC
-
-
REDRAW
-
-
getChanged()
- Gets the value of the Changed property.
-
getChanged(int)
- Checks the value of the ChangedFlag property for the existence of
the specified mask.
-
isChanged()
- Gets the value of the Changed property.
-
isChanged(int)
- Checks the value of the ChangedFlag property for the existence of
the specified mask.
-
setChanged(boolean, int)
- Sets the value of the Changed property and updates the
parent object.
-
setChanged(boolean, int, boolean)
- Sets the value of the Changed property.
NO_CHANGE
public static final int NO_CHANGE
REDRAW
public static final int REDRAW
RECALC
public static final int RECALC
LAYOUT
public static final int LAYOUT
NOTIFY_PARENT_LAYOUT
public static final int NOTIFY_PARENT_LAYOUT
NOTIFY_LEGEND_REDRAW
public static final int NOTIFY_LEGEND_REDRAW
NOTIFY_LEGEND_RECALC
public static final int NOTIFY_LEGEND_RECALC
NOTIFY_AXES_REDRAW
public static final int NOTIFY_AXES_REDRAW
NOTIFY_AXES_RECALC
public static final int NOTIFY_AXES_RECALC
NOTIFY_CA_REDRAW
public static final int NOTIFY_CA_REDRAW
NOTIFY_CA_RECALC
public static final int NOTIFY_CA_RECALC
BASIC_CHANGE_MASK
public static final int BASIC_CHANGE_MASK
getChanged
public abstract boolean getChanged()
- Gets the value of the Changed property.
The Changed property determines whether the object needs
to be recalculated.
- Returns:
- True if the object has been changed and needs
recalculation, false otherwise.
getChanged
public abstract boolean getChanged(int mask)
- Checks the value of the ChangedFlag property for the existence of
the specified mask.
The ChangedFlag property determines the type of action (recalc, redraw)
that needs to happen to the object.
- Returns:
- True if the ChangedFlag contains the given mask (e.g. RECALC,
REDRAW, etc.), false otherwise.
isChanged
public abstract boolean isChanged()
- Gets the value of the Changed property.
The Changed property determines whether the object needs
to be recalculated.
- Returns:
- True if the object has been changed and needs
recalculation, false otherwise.
isChanged
public abstract boolean isChanged(int mask)
- Checks the value of the ChangedFlag property for the existence of
the specified mask.
The ChangedFlag property determines the type of action (recalc, redraw)
that needs to happen to the object.
- Returns:
- True if the ChangedFlag contains the given mask (e.g. RECALC,
REDRAW, etc.), false otherwise.
setChanged
public abstract void setChanged(boolean n,
int cf)
- Sets the value of the Changed property and updates the
parent object.
The Changed property determines whether the object needs
to be recalculated.
- Parameters:
- n - New value for Changed.
- cf - Or-ed series of bit flags indicating type of change.
setChanged
public abstract void setChanged(boolean n,
int cf,
boolean updateParent)
- Sets the value of the Changed property.
The Changed property determines whether the object needs
to be recalculated.
- Parameters:
- n - New value for Changed.
- cf - Or-ed series of bit flags indicating type of change.
- updateParent - If true, the parent is updated. Otherwise,
the parent is not updated. The "update" semantics are up to the
implementor
All Packages Class Hierarchy This Package Previous Next Index