|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--com.klg.jclass.chart.ChartRegion
A utility class used inside JClass Chart to represent a drawable region on a chart. It is used for child components.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected CellRendererPane |
cellRendererPane
|
protected boolean |
changed
Boolean representing the value of the Changed property. |
protected int |
changedFlag
|
protected Dimension |
preferredSize
|
protected boolean |
updateParent
Used to turn off updates to parent in certain cases. |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface com.klg.jclass.chart.Changeable |
BASIC_CHANGE_MASK, NOTIFY_AXES_RECALC, NOTIFY_AXES_REDRAW, NOTIFY_CA_RECALC, NOTIFY_CA_REDRAW, NOTIFY_LEGEND_RECALC, NOTIFY_LEGEND_REDRAW |
| Fields inherited from interface com.klg.jclass.util.Changeable |
LAYOUT, NO_CHANGE, NOTIFY_PARENT_LAYOUT, RECALC, REDRAW |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
ChartRegion()
Default constructor for chart region. |
|
ChartRegion(com.klg.jclass.chart.JCChart p)
Constructor that connects the ChartRegion to a parent JCChart. |
|
| Method Summary | |
CellRendererPane |
getCellRendererPane()
Gets the cell renderer pane for this ChartRegion. |
boolean |
getChanged()
Gets the value of the Changed property. |
boolean |
getChanged(int mask)
Checks the value of the ChangedFlag property for the specified mask
(see Changeable for a list of valid masks). |
Rectangle |
getDrawingArea()
Gets the bounding rectangle of the component's drawing area, (its area minus the shadows and insets). |
void |
getDrawingArea(Rectangle rect)
Gets the bounding rectangle of the component's drawing area, (its area minus the insets). |
Dimension |
getPreferredSize()
Returns the manually set preferred size for the ChartRegion instance. |
boolean |
isBatched()
|
boolean |
isChanged()
Gets the value of the Changed property. |
boolean |
isChanged(int mask)
Checks the value of the ChangedFlag property for the specified mask
(see Changeable for a list of valid masks). |
void |
paintComponent(Graphics gc)
|
void |
setChanged(boolean c,
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. |
void |
setPreferredSize(Dimension dim)
Sets the preferred size manually for this ChartRegion instance. |
void |
updateParent(int cf)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean updateParent
protected boolean changed
Changed property.
protected int changedFlag
protected Dimension preferredSize
protected CellRendererPane cellRendererPane
| Constructor Detail |
public ChartRegion()
public ChartRegion(com.klg.jclass.chart.JCChart p)
ChartRegion to a parent JCChart.
p - parent chart| Method Detail |
public void paintComponent(Graphics gc)
paintComponent in class JComponentpublic Dimension getPreferredSize()
ChartRegion instance.
getPreferredSize in class JComponentpublic void setPreferredSize(Dimension dim)
ChartRegion instance.
setPreferredSize in class JComponentdim - the preferred sizepublic Rectangle getDrawingArea()
JComponent.setBorder(javax.swing.border.Border)public void getDrawingArea(Rectangle rect)
rect - JComponent.setBorder(javax.swing.border.Border)public CellRendererPane getCellRendererPane()
ChartRegion. Used to render HTML
encoded text with a JLabel.
public boolean getChanged()
Changed property.
The Changed property determines whether the object needs
to be recalculated.
getChanged in interface Changeabletrue if the object has been changed and needs
recalculation; false otherwisepublic boolean getChanged(int mask)
ChangedFlag property for the specified mask
(see Changeable for a list of valid masks).
The ChangedFlag property determines the action the object needs to
take in regards to the current change.
getChanged in interface Changeablemask -
true if the specified mask exists in the ChangedFlag property;
false otherwisepublic final boolean isChanged()
Changed property.
The Changed property determines whether the object needs
to be recalculated.
isChanged in interface Changeabletrue if the object has been changed and needs
recalculation; false otherwisepublic final boolean isChanged(int mask)
ChangedFlag property for the specified mask
(see Changeable for a list of valid masks).
The ChangedFlag property determines the action the object needs to
take in regards to the current change.
isChanged in interface Changeablemask -
true if the specified mask exists in the ChangedFlag property;
false otherwise
public void setChanged(boolean c,
int cf)
Changed property and updates the parent object.
The Changed property determines whether the object needs to be recalculated.
setChanged in interface Changeablec - new value for Changedcf -
public void setChanged(boolean n,
int cf,
boolean updateParent)
Changed property. The Changed
property determines whether the object needs to be recalculated.
setChanged in interface Changeablen - new value for ChangedupdateParent - if true, the parent is updated; otherwise,
the parent is not updated (the "update" semantics are up to the
implementor)cf - public void updateParent(int cf)
public boolean isBatched()
isBatched in interface Changeable
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||