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).


Variable Index

 o BASIC_CHANGE_MASK
 o LAYOUT
 o NO_CHANGE
 o NOTIFY_AXES_RECALC
 o NOTIFY_AXES_REDRAW
 o NOTIFY_CA_RECALC
 o NOTIFY_CA_REDRAW
 o NOTIFY_LEGEND_RECALC
 o NOTIFY_LEGEND_REDRAW
 o NOTIFY_PARENT_LAYOUT
 o RECALC
 o REDRAW

Method Index

 o getChanged()
Gets the value of the Changed property.
 o getChanged(int)
Checks the value of the ChangedFlag property for the existence of the specified mask.
 o isChanged()
Gets the value of the Changed property.
 o isChanged(int)
Checks the value of the ChangedFlag property for the existence of the specified mask.
 o setChanged(boolean, int)
Sets the value of the Changed property and updates the parent object.
 o setChanged(boolean, int, boolean)
Sets the value of the Changed property.

Variables

 o NO_CHANGE
 public static final int NO_CHANGE
 o REDRAW
 public static final int REDRAW
 o RECALC
 public static final int RECALC
 o LAYOUT
 public static final int LAYOUT
 o NOTIFY_PARENT_LAYOUT
 public static final int NOTIFY_PARENT_LAYOUT
 o NOTIFY_LEGEND_REDRAW
 public static final int NOTIFY_LEGEND_REDRAW
 o NOTIFY_LEGEND_RECALC
 public static final int NOTIFY_LEGEND_RECALC
 o NOTIFY_AXES_REDRAW
 public static final int NOTIFY_AXES_REDRAW
 o NOTIFY_AXES_RECALC
 public static final int NOTIFY_AXES_RECALC
 o NOTIFY_CA_REDRAW
 public static final int NOTIFY_CA_REDRAW
 o NOTIFY_CA_RECALC
 public static final int NOTIFY_CA_RECALC
 o BASIC_CHANGE_MASK
 public static final int BASIC_CHANGE_MASK

Methods

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o 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