JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.util
Interface Changeable

All Known Subinterfaces:
Changeable, Changeable
All Known Implementing Classes:
ChartDataView, ChartRegion, JCChart, JCChart3d, JCChart3dArea, JCChart3dAreaJava3d, JCLegend, TrackChange, TrackChange

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 and ChartInteriorRegion derived objects make use of Changeable, either by directly implementing the interface or by deriving from TrackChange (an abstract class that implements Changeable).


Field Summary
static int BASIC_CHANGE_MASK
           
static int LAYOUT
           
static int NO_CHANGE
           
static int NOTIFY_PARENT_LAYOUT
           
static int RECALC
           
static int REDRAW
           
 
Method Summary
 boolean getChanged()
          Gets the value of the Changed property.
 boolean getChanged(int mask)
          Checks the value of the ChangedFlag property for the existence of the specified mask.
 boolean isBatched()
           
 boolean isChanged()
          Gets the value of the Changed property.
 boolean isChanged(int mask)
          Checks the value of the ChangedFlag property for the existence of the specified mask.
 void setChanged(boolean n, int cf)
          Sets the value of the Changed property and updates the parent object.
 void setChanged(boolean n, int cf, boolean updateParent)
          Sets the value of the Changed property.
 

Field Detail

NO_CHANGE

public static final int NO_CHANGE
See Also:
Constant Field Values

REDRAW

public static final int REDRAW
See Also:
Constant Field Values

RECALC

public static final int RECALC
See Also:
Constant Field Values

LAYOUT

public static final int LAYOUT
See Also:
Constant Field Values

NOTIFY_PARENT_LAYOUT

public static final int NOTIFY_PARENT_LAYOUT
See Also:
Constant Field Values

BASIC_CHANGE_MASK

public static final int BASIC_CHANGE_MASK
See Also:
Constant Field Values
Method Detail

getChanged

public 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 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 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 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 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 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

isBatched

public boolean isBatched()

Copyright © 2004 Quest Software Inc..
All rights reserved.