JIDE 3.5.15

com.jidesoft.plaf.basic
Class BasicScaleAreaUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by com.jidesoft.plaf.ScaleAreaUI
          extended by com.jidesoft.plaf.basic.BasicScaleAreaUI
Direct Known Subclasses:
TableCellRendererScaleAreaUI

public class BasicScaleAreaUI
extends ScaleAreaUI


Nested Class Summary
protected static class BasicScaleAreaUI.Handler
           
 
Field Summary
static String UI_MOUSE_DRAG_RESIZABLE
           
static String UI_PERIOD_HEADER_PAINTER
           
 
Constructor Summary
BasicScaleAreaUI()
           
 
Method Summary
protected  PeriodHeaderPainter createDefaultPeriodHeaderPainter(ScaleArea<Object> scaleArea)
           
protected  BasicScaleAreaUI.Handler createHandler()
           
static ComponentUI createUI(JComponent c)
           
protected  int getLeftToRightX(long position)
           
 Period getPeriodAt(int y)
           
 long getPositionAt(int x)
          Note: the components left-to-right orientation should be taken into account.
 Dimension getPreferredPeriodSize(Period period)
           
 Dimension getPreferredSize(JComponent c)
           
protected  ScaleArea<Object> getScaleArea()
           
 int getX(long position)
          Note: the components left-to-right orientation should be taken into account.
protected  void installDefaults(ScaleArea<Object> scaleArea)
           
protected  void installListeners(ScaleArea<Object> scaleArea)
           
 void installUI(JComponent c)
           
 void paint(Graphics g, JComponent c)
           
protected  void paintBackground(Graphics g, ScaleArea<Object> scaleArea)
           
protected  void recalculateScale(ScaleArea<Object> scaleArea)
           
protected  void setPreferredPeriodSize(Dimension size)
           
protected  void uninstallDefaults(ScaleArea<Object> scaleArea)
           
protected  void uninstallListeners(ScaleArea<Object> scaleArea)
           
 void uninstallUI(JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UI_PERIOD_HEADER_PAINTER

public static final String UI_PERIOD_HEADER_PAINTER
See Also:
Constant Field Values

UI_MOUSE_DRAG_RESIZABLE

public static final String UI_MOUSE_DRAG_RESIZABLE
See Also:
Constant Field Values
Constructor Detail

BasicScaleAreaUI

public BasicScaleAreaUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

getScaleArea

protected ScaleArea<Object> getScaleArea()

installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI

installDefaults

protected void installDefaults(ScaleArea<Object> scaleArea)

createDefaultPeriodHeaderPainter

protected PeriodHeaderPainter createDefaultPeriodHeaderPainter(ScaleArea<Object> scaleArea)

uninstallDefaults

protected void uninstallDefaults(ScaleArea<Object> scaleArea)

installListeners

protected void installListeners(ScaleArea<Object> scaleArea)

createHandler

protected BasicScaleAreaUI.Handler createHandler()

uninstallListeners

protected void uninstallListeners(ScaleArea<Object> scaleArea)

paintBackground

protected void paintBackground(Graphics g,
                               ScaleArea<Object> scaleArea)

paint

public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI

recalculateScale

protected void recalculateScale(ScaleArea<Object> scaleArea)

getPositionAt

public long getPositionAt(int x)
Description copied from class: ScaleAreaUI
Note: the components left-to-right orientation should be taken into account.

Specified by:
getPositionAt in class ScaleAreaUI

getX

public int getX(long position)
Description copied from class: ScaleAreaUI
Note: the components left-to-right orientation should be taken into account.

Specified by:
getX in class ScaleAreaUI

getLeftToRightX

protected int getLeftToRightX(long position)

setPreferredPeriodSize

protected void setPreferredPeriodSize(Dimension size)

getPreferredPeriodSize

public Dimension getPreferredPeriodSize(Period period)
Specified by:
getPreferredPeriodSize in class ScaleAreaUI

getPeriodAt

public Period getPeriodAt(int y)
Specified by:
getPeriodAt in class ScaleAreaUI

JIDE 3.5.15