jsky.navigator
Class SymbolLayer

java.lang.Object
  extended by diva.canvas.CanvasLayer
      extended by jsky.navigator.SymbolLayer
All Implemented Interfaces:
CanvasComponent, VisibleComponent

public class SymbolLayer
extends CanvasLayer
implements VisibleComponent


Constructor Summary
SymbolLayer()
           
 
Method Summary
 boolean isVisible()
          Test the visibility flag of this object.
 void paint(Graphics2D g)
          Paint this object onto a 2D graphics object.
 void paint(Graphics2D g, Rectangle2D region)
          Paint this object onto a 2D graphics object, within the given region.
 void setPlotter(TablePlotter plotter)
          Set the object used to draw catalog symbols
 void setVisible(boolean b)
          Set the visibility flag of this object.
 
Methods inherited from class diva.canvas.CanvasLayer
getCanvasPane, getLayerBounds, getParent, getToolTipText, getTransformContext, repaint, repaint, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface diva.canvas.CanvasComponent
getParent, getTransformContext, repaint, repaint
 

Constructor Detail

SymbolLayer

public SymbolLayer()
Method Detail

setPlotter

public void setPlotter(TablePlotter plotter)
Set the object used to draw catalog symbols


paint

public void paint(Graphics2D g)
Description copied from interface: VisibleComponent
Paint this object onto a 2D graphics object. Implementors should first test if the visibility flag is set, and paint the object if it is.

Specified by:
paint in interface VisibleComponent

paint

public void paint(Graphics2D g,
                  Rectangle2D region)
Description copied from interface: VisibleComponent
Paint this object onto a 2D graphics object, within the given region. Implementors should first test if the visibility flag is set, and paint the object if it is. The provided region can be used to optimize the paint, but implementors can assume that the clip region is correctly set beforehand.

Specified by:
paint in interface VisibleComponent

isVisible

public boolean isVisible()
Description copied from interface: VisibleComponent
Test the visibility flag of this object. Note that this flag does not indicate whether the object is actually visible on the screen, as one of its ancestors may not be visible.

Specified by:
isVisible in interface VisibleComponent

setVisible

public void setVisible(boolean b)
Description copied from interface: VisibleComponent
Set the visibility flag of this object. If the flag is false, then the object will not be painted on the screen.

Specified by:
setVisible in interface VisibleComponent


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.