org.apache.pivot.wtk.media
Class Drawing
java.lang.Object
org.apache.pivot.wtk.media.Image
org.apache.pivot.wtk.media.Drawing
- All Implemented Interfaces:
- Visual
public class Drawing
- extends Image
Image representing a vector drawing.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Drawing
public Drawing()
getWidth
public int getWidth()
- Description copied from interface:
Visual
- Returns the visual's width.
getHeight
public int getHeight()
- Description copied from interface:
Visual
- Returns the visual's height.
getBaseline
public int getBaseline()
- Description copied from interface:
Visual
- Returns the visual's baseline.
- Specified by:
getBaseline
in interface Visual
- Overrides:
getBaseline
in class Image
- Returns:
- The baseline relative to the origin of the visual, or -1 if
this visual does not have a baseline.
setBaseline
public void setBaseline(int baseline)
getCanvas
public Canvas getCanvas()
setCanvas
public void setCanvas(Canvas canvas)
getBackground
public Paint getBackground()
setBackground
public void setBackground(Paint background)
setBackground
public final void setBackground(String background)
paint
public void paint(Graphics2D graphics)
- Description copied from interface:
Visual
- Paints the visual.
- Parameters:
graphics
- The graphics context in which to paint the visual.
getDrawingListeners
public ListenerList<DrawingListener> getDrawingListeners()