|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JaxoCanvasComponent
The canvas as a component.
Method Summary | |
---|---|
void |
addMouseListener(MouseListener l)
Adds the specified mouse listener to receive mouse events from this CanvasComponent. |
void |
addMouseMotionListener(MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this CanvasComponent. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
Component |
asComponent()
Return this CanvasComponent as a Component. |
Color |
getCanvasBackground()
Background color in the region that is actually covered by the canvas getCanvasSize() . |
Rectangle |
getCanvasBounds()
Part of the component that is covered by the actual canvas. |
Point |
getCanvasOrigin()
Origin of the actual canvas within the component. |
Dimension |
getCanvasSize()
Canvas size. |
Graphics |
getGraphics()
Return the graphics context of this CanvasComponent. |
Dimension |
getMaximumCanvasSize()
Maximum size of the canvas (even if there are objects with a larger bounding box). |
Dimension |
getMinimumCanvasSize()
Minimum size of the canvas (even if there are no objects or they have a smaller bounding box). |
void |
print(Graphics g)
Prints this component. |
void |
removeMouseListener(MouseListener l)
Removes the specified mouse listener so that it no longer receives mouse events from this component. |
void |
removeMouseMotionListener(MouseMotionListener l)
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component. |
void |
repaint()
Repaints this component. |
void |
setCanvasBackground(Color color)
Sets the color of the background. |
void |
setMaximumCanvasSize(Dimension value)
Sets the maximum canvas size. |
void |
setMinimumCanvasSize(Dimension value)
Sets the minimum canvas size. |
Method Detail |
---|
void addMouseListener(MouseListener l)
l
- the mouse listener. May be null.Component.addMouseListener(java.awt.event.MouseListener)
void addMouseMotionListener(MouseMotionListener l)
l
- the mouse motion listener. May be null.Component.addMouseMotionListener(java.awt.event.MouseMotionListener)
void addPropertyChangeListener(PropertyChangeListener listener)
listener
- the property change listener to be added. May be null.Component.addPropertyChangeListener(java.beans.PropertyChangeListener)
Component asComponent()
Color getCanvasBackground()
getCanvasSize()
.
Rectangle getCanvasBounds()
getCanvasSize()
,
getCanvasOrigin()
Point getCanvasOrigin()
Dimension getCanvasSize()
Graphics getGraphics()
Component.getGraphics()
Dimension getMaximumCanvasSize()
Dimension getMinimumCanvasSize()
void print(Graphics g)
g
- the graphics context to use for printing.Component.print(java.awt.Graphics)
void removeMouseListener(MouseListener l)
l
- the mouse listenerComponent.removeMouseListener(java.awt.event.MouseListener)
void removeMouseMotionListener(MouseMotionListener l)
l
- the mouse motion listenerComponent.removeMouseMotionListener(java.awt.event.MouseMotionListener)
void repaint()
Component.repaint()
void setCanvasBackground(Color color)
color
- The background color.void setMaximumCanvasSize(Dimension value)
value
- The maximum canvas size.void setMinimumCanvasSize(Dimension value)
value
- The minimum canvas size.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |