Class PointLabelHighPrecedenceTool

java.lang.Object
org.gvsig.app.gui.styling.EditorTool
org.gvsig.labeling.gui.styling.editortools.PointLabelHighPrecedenceTool
All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener
Direct Known Subclasses:
PointLabelForbiddenPrecedenceTool, PointLabelLowPrecedenceTool, PointLabelNormalPrecedenceTool

public class PointLabelHighPrecedenceTool extends org.gvsig.app.gui.styling.EditorTool
Implements an editor tool which can be used to select the position for the label when the user is performing a layer of points. There will be 4 different precedence levels for the 8 different places where the text for the specified point will be placed (see PointLabelPositioneer.java). This class implements the highest one, but the user can select a normal, a low or a forbidden one.
Author:
Pepe Vidal Salvador - jose.vidal.salvador@iver.es
  • Field Details

    • buttonIcon

      protected String buttonIcon
    • precedenceValue

      protected byte precedenceValue
  • Constructor Details

    • PointLabelHighPrecedenceTool

      public PointLabelHighPrecedenceTool(JComponent targetEditor)
      Constructor
      Parameters:
      targetEditor -
  • Method Details

    • getIconButton

      protected ImageIcon getIconButton()
      Obtains the image for the button of the tool
      Returns:
    • getButton

      public AbstractButton getButton()
      Specified by:
      getButton in class org.gvsig.app.gui.styling.EditorTool
    • getCursor

      public Cursor getCursor()
      Specified by:
      getCursor in class org.gvsig.app.gui.styling.EditorTool
    • getID

      public String getID()
      Specified by:
      getID in class org.gvsig.app.gui.styling.EditorTool
    • isSuitableFor

      public boolean isSuitableFor(Object obj)
      Specified by:
      isSuitableFor in class org.gvsig.app.gui.styling.EditorTool
    • setModel

      public void setModel(Object objectToBeEdited)
      Specified by:
      setModel in class org.gvsig.app.gui.styling.EditorTool
    • mousePressed

      public void mousePressed(MouseEvent e)
    • mouseReleased

      public void mouseReleased(MouseEvent e)
    • mouseDragged

      public void mouseDragged(MouseEvent e)