|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
infovis.panel.VisualizationPanel
public class VisualizationPanel
Component managing a visualization.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Field Summary | |
|---|---|
static String |
PROPERTY_USING_GRADIENT
Property name for usingGradient. |
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
VisualizationPanel(Visualization visualization)
VisualizationPanel constructor. |
|
| Method Summary | |
|---|---|
Rectangle2D.Float |
getFullBounds()
Returns the full bounds of this component. |
Dimension |
getPreferredSize()
|
String |
getToolTipText(MouseEvent event)
|
Visualization |
getVisualization()
Returns the visualization. |
boolean |
isUsingGradient()
Returns whether the background is using a gradient fill. |
void |
paintBackground(Graphics2D graphics)
Paints the background according to the usingGradient paramter. |
void |
setUsingGradient(boolean usingGradient)
Sets a gradient fill to the background. |
void |
setVisualization(Visualization visualization)
Sets the visualization. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_USING_GRADIENT
| Constructor Detail |
|---|
public VisualizationPanel(Visualization visualization)
visualization - the visualization to show inside a Swing/AWT component.| Method Detail |
|---|
public Rectangle2D.Float getFullBounds()
public void paintBackground(Graphics2D graphics)
graphics - the graphicspublic Visualization getVisualization()
public void setVisualization(Visualization visualization)
visualization - The visualization to setpublic String getToolTipText(MouseEvent event)
getToolTipText in class JComponentJComponent.getToolTipText(MouseEvent)public Dimension getPreferredSize()
getPreferredSize in class JComponentpublic boolean isUsingGradient()
public void setUsingGradient(boolean usingGradient)
usingGradient - true if a gradient fill is wanted on the background.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||