Class BufferedPainter<T>

java.lang.Object
ca.phon.ui.painter.BufferedPainter<T>
All Implemented Interfaces:
Painter<T>

public abstract class BufferedPainter<T> extends Object implements Painter<T>
  • Constructor Details

    • BufferedPainter

      public BufferedPainter()
  • Method Details

    • getBufferdImage

      public BufferedImage getBufferdImage()
    • setBufferedImage

      public void setBufferedImage(BufferedImage img)
    • getPrevSize

      public Dimension getPrevSize()
    • setPrevSize

      public void setPrevSize(Dimension size)
    • isRepaintBuffer

      public boolean isRepaintBuffer()
    • setRepaintBuffer

      public void setRepaintBuffer(boolean repaintBuffer)
    • getResizeMode

      public BufferedPainter.ResizeMode getResizeMode()
    • setResizeMode

      public void setResizeMode(BufferedPainter.ResizeMode mode)
    • paintBuffer

      protected abstract void paintBuffer(T obj, Graphics2D g2, Rectangle2D bounds)
      Paint the buffer.
      Parameters:
      obj -
      g2 -
      bounds -
    • getBufferWidth

      public int getBufferWidth(T obj, Rectangle2D bounds)
    • getBufferHeight

      public int getBufferHeight(T obj, Rectangle2D bounds)
    • paint

      public void paint(T obj, Graphics2D g2, Rectangle2D bounds)
      Description copied from interface: Painter
      Paint to the given graphics context inside the given bounds.
      Specified by:
      paint in interface Painter<T>
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
    • addPropertyChangeListener

      public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
    • fireIndexedPropertyChange

      public void fireIndexedPropertyChange(String propertyName, int index, boolean oldValue, boolean newValue)
    • fireIndexedPropertyChange

      public void fireIndexedPropertyChange(String propertyName, int index, int oldValue, int newValue)
    • fireIndexedPropertyChange

      public void fireIndexedPropertyChange(String propertyName, int index, Object oldValue, Object newValue)
    • firePropertyChange

      public void firePropertyChange(PropertyChangeEvent evt)
    • firePropertyChange

      public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue)
    • firePropertyChange

      public void firePropertyChange(String propertyName, int oldValue, int newValue)
    • firePropertyChange

      public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
    • getPropertyChangeListeners

      public PropertyChangeListener[] getPropertyChangeListeners()
    • getPropertyChangeListeners

      public PropertyChangeListener[] getPropertyChangeListeners(String propertyName)
    • hasListeners

      public boolean hasListeners(String propertyName)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)