Package org.jungrapht.visualization
Interface VisualizationComponent
-
- All Known Subinterfaces:
SatelliteVisualizationViewer<V,E>
,VisualizationServer<V,E>
,VisualizationViewer<V,E>
- All Known Implementing Classes:
AbstractSatelliteVisualizationViewer
,AbstractVisualizationServer
,AbstractVisualizationViewer
,DefaultSatelliteVisualizationViewer
,VisualizationImageServer
public interface VisualizationComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Component
add(Component component)
void
add(Component component, Object layout)
Color
getBackground()
Rectangle
getBounds()
JComponent
getComponent()
Font
getFont()
int
getHeight()
Dimension
getPreferredSize()
Dimension
getSize()
String
getToolTipText()
int
getWidth()
void
setBackground(Color backgroundColor)
void
setCursor(Cursor cursor)
void
setFont(Font font)
void
setForeground(Color foregroundColor)
void
setLayout(LayoutManager layout)
void
setPreferredSize(Dimension preferredSize)
-
-
-
Method Detail
-
getComponent
JComponent getComponent()
-
getBounds
Rectangle getBounds()
- Returns:
- the rectangular bounds
-
getBackground
Color getBackground()
- Returns:
- the background color
-
setBackground
void setBackground(Color backgroundColor)
- Parameters:
backgroundColor
- the color to set
-
setForeground
void setForeground(Color foregroundColor)
- Parameters:
foregroundColor
- the color to set
-
setCursor
void setCursor(Cursor cursor)
- Parameters:
cursor
- the cursor to set
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
getPreferredSize
Dimension getPreferredSize()
-
setPreferredSize
void setPreferredSize(Dimension preferredSize)
-
getSize
Dimension getSize()
-
getToolTipText
String getToolTipText()
-
setLayout
void setLayout(LayoutManager layout)
-
setFont
void setFont(Font font)
-
getFont
Font getFont()
-
-