接口 PrintableHandler

所有已知实现类:
AttributeVisualizationPanel, HierarchyVisualizer, PrintableComponent, PrintablePanel, ThresholdVisualizePanel, TreeVisualizer, VisualizePanel

public interface PrintableHandler
This interface is for all JComponent classes that provide the ability to print itself to a file.
版本:
$Revision: 1.2 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    returns the title for the save dialog
    returns the JComponentWriter associated with the given name, is null if not found
    returns a Hashtable with the current available JComponentWriters in the save dialog.
    double
    returns the scale factor for the x-axis
    double
    returns the scale factor for the y-axis
    void
    displays a save dialog for saving the component to a file.
    void
    sets the title for the save dialog
    void
    setScale(double x, double y)
    sets the scale factor
  • 方法详细资料

    • getWriters

      Hashtable getWriters()
      returns a Hashtable with the current available JComponentWriters in the save dialog. the key of the Hashtable is the description of the writer.
      返回:
      all currently available JComponentWriters
      另请参阅:
    • getWriter

      JComponentWriter getWriter(String name)
      returns the JComponentWriter associated with the given name, is null if not found
      返回:
      the writer associated with the given name
      另请参阅:
    • setSaveDialogTitle

      void setSaveDialogTitle(String title)
      sets the title for the save dialog
    • getSaveDialogTitle

      String getSaveDialogTitle()
      returns the title for the save dialog
    • setScale

      void setScale(double x, double y)
      sets the scale factor
      参数:
      x - the scale factor for the x-axis
      y - the scale factor for the y-axis
    • getXScale

      double getXScale()
      returns the scale factor for the x-axis
    • getYScale

      double getYScale()
      returns the scale factor for the y-axis
    • saveComponent

      void saveComponent()
      displays a save dialog for saving the component to a file.