info.aduna.clustermap.render
Class ClassificationRenderer

java.lang.Object
  extended by info.aduna.clustermap.render.Renderer
      extended by info.aduna.clustermap.render.VertexRenderer
          extended by info.aduna.clustermap.render.ImageRenderer
              extended by info.aduna.clustermap.render.ClassificationRenderer

public class ClassificationRenderer
extends ImageRenderer


Field Summary
static Color DEFAULT_TEXT_BACKGROUND_COLOR
           
static Color DEFAULT_TEXT_BOX_COLOR
           
static Color DEFAULT_TEXT_COLOR
           
static int LABEL_IMAGE_GAP
           
 
Constructor Summary
ClassificationRenderer(ClassificationVertex vertex)
           
 
Method Summary
 boolean contains(int x, int y)
           
 void draw(Graphics2D g)
           
 void drawText(Graphics2D g)
           
 void extendBoundingBox(Rectangle boundingBox)
           
 Classification getClassification()
           
 Image getLabelImage()
           
 String getText()
           
 Color getTextBackgroundColor()
           
 Color getTextBoxColor()
           
 Color getTextColor()
           
 int getTextX()
           
 int getTextY()
           
 boolean isImageVisible()
           
 void prepare(int x, int y, int nrSelected, GraphRenderer renderer)
           
 void scale(double scale, GraphRenderer renderer)
           
 void setLabelImage(Image image)
           
 void setTextBackgroundColor(Color textBackgroundColor)
           
 void setTextBoxColor(Color textBoxColor)
           
 void setTextColor(Color textColor)
           
 void translate(int dx, int dy)
           
 
Methods inherited from class info.aduna.clustermap.render.ImageRenderer
getHeight, getImage, getImageX, getImageY, getWidth, setImage, setLocation
 
Methods inherited from class info.aduna.clustermap.render.VertexRenderer
getVertex, getX, getY
 
Methods inherited from class info.aduna.clustermap.render.Renderer
getHighlightLevel, scale, setHighlightLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TEXT_COLOR

public static final Color DEFAULT_TEXT_COLOR

DEFAULT_TEXT_BOX_COLOR

public static final Color DEFAULT_TEXT_BOX_COLOR

DEFAULT_TEXT_BACKGROUND_COLOR

public static final Color DEFAULT_TEXT_BACKGROUND_COLOR

LABEL_IMAGE_GAP

public static final int LABEL_IMAGE_GAP
See Also:
Constant Field Values
Constructor Detail

ClassificationRenderer

public ClassificationRenderer(ClassificationVertex vertex)
Method Detail

getClassification

public Classification getClassification()

setLabelImage

public void setLabelImage(Image image)

getLabelImage

public Image getLabelImage()

getText

public String getText()

getTextX

public int getTextX()

getTextY

public int getTextY()

setTextColor

public void setTextColor(Color textColor)

getTextColor

public Color getTextColor()

setTextBoxColor

public void setTextBoxColor(Color textBoxColor)

getTextBoxColor

public Color getTextBoxColor()

setTextBackgroundColor

public void setTextBackgroundColor(Color textBackgroundColor)

getTextBackgroundColor

public Color getTextBackgroundColor()

prepare

public void prepare(int x,
                    int y,
                    int nrSelected,
                    GraphRenderer renderer)

scale

public void scale(double scale,
                  GraphRenderer renderer)
Overrides:
scale in class ImageRenderer

translate

public void translate(int dx,
                      int dy)
Overrides:
translate in class ImageRenderer

extendBoundingBox

public void extendBoundingBox(Rectangle boundingBox)
Overrides:
extendBoundingBox in class ImageRenderer

isImageVisible

public boolean isImageVisible()

draw

public void draw(Graphics2D g)
Overrides:
draw in class ImageRenderer

drawText

public void drawText(Graphics2D g)

contains

public boolean contains(int x,
                        int y)
Overrides:
contains in class ImageRenderer


Copyright © 1997-2008 Aduna. All Rights Reserved.