Package ca.phon.ui.painter
Class BufferedPainter<T>
java.lang.Object
ca.phon.ui.painter.BufferedPainter<T>
- All Implemented Interfaces:
Painter<T>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
This class will keep a reference to the size of the previously rendered area. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) void
fireIndexedPropertyChange
(String propertyName, int index, boolean oldValue, boolean newValue) void
fireIndexedPropertyChange
(String propertyName, int index, int oldValue, int newValue) void
fireIndexedPropertyChange
(String propertyName, int index, Object oldValue, Object newValue) void
void
firePropertyChange
(String propertyName, boolean oldValue, boolean newValue) void
firePropertyChange
(String propertyName, int oldValue, int newValue) void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) int
getBufferHeight
(T obj, Rectangle2D bounds) int
getBufferWidth
(T obj, Rectangle2D bounds) getPropertyChangeListeners
(String propertyName) boolean
hasListeners
(String propertyName) boolean
void
paint
(T obj, Graphics2D g2, Rectangle2D bounds) Paint to the given graphics context inside the given bounds.protected abstract void
paintBuffer
(T obj, Graphics2D g2, Rectangle2D bounds) Paint the buffer.void
void
removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) void
void
setPrevSize
(Dimension size) void
setRepaintBuffer
(boolean repaintBuffer) void
-
Constructor Details
-
BufferedPainter
public BufferedPainter()
-
-
Method Details
-
getBufferdImage
-
setBufferedImage
-
getPrevSize
-
setPrevSize
-
isRepaintBuffer
public boolean isRepaintBuffer() -
setRepaintBuffer
public void setRepaintBuffer(boolean repaintBuffer) -
getResizeMode
-
setResizeMode
-
paintBuffer
Paint the buffer.- Parameters:
obj
-g2
-bounds
-
-
getBufferWidth
-
getBufferHeight
-
paint
Description copied from interface:Painter
Paint to the given graphics context inside the given bounds. -
addPropertyChangeListener
-
addPropertyChangeListener
-
fireIndexedPropertyChange
public void fireIndexedPropertyChange(String propertyName, int index, boolean oldValue, boolean newValue) -
fireIndexedPropertyChange
-
fireIndexedPropertyChange
-
firePropertyChange
-
firePropertyChange
-
firePropertyChange
-
firePropertyChange
-
getPropertyChangeListeners
-
getPropertyChangeListeners
-
hasListeners
-
removePropertyChangeListener
-
removePropertyChangeListener
-