ChartCat 1.2

li.netcat.chart.util
Class DirectInscribePart

java.lang.Object
  extended byli.netcat.chart.util.AbstractPart
      extended byli.netcat.chart.util.TextPart
          extended byli.netcat.chart.util.TagPart
              extended byli.netcat.chart.util.InscribePart
                  extended byli.netcat.chart.util.DirectInscribePart
All Implemented Interfaces:
Part

public class DirectInscribePart
extends InscribePart

Represents a direct inscription that looks for example like this:

It can be used to tag a graph part. This part uses the tag concept and is therefore very flexible in its strategy and layout. For more details, see the super class TagPart.

By default, this part does not use any lines to connect the tag with the target point and does not handle overlaps.

Author:
Arthur Marxer

Field Summary
 
Fields inherited from class li.netcat.chart.util.AbstractPart
BACKGROUND, FOREGROUND, PERSPECTIVE
 
Constructor Summary
DirectInscribePart(GraphPart graphPart)
          Constructs a new DirectInscribePart that tags the given graph part.
 
Method Summary
 TagConstraints getTagConstraints(java.awt.Graphics g)
          Subclasses must implement this method to report the tag constraints that do the first displacements.
 
Methods inherited from class li.netcat.chart.util.InscribePart
getCrosswisePosition, getCrosswiseShift, getGraphPart, getLengthwisePosition, getLengthwiseShift, getTags, setGraphPart, setTargetPosition
 
Methods inherited from class li.netcat.chart.util.TagPart
createTag, createTag, createTag, getAdditionalLineLength, getBottom, getLayout, getLeft, getLinePenBox, getPen, getRight, getTagManager, getTextPenBox, getTop, setAdditionalLineLength, setInsets, setLinePenBox, setPen, setTagManager, setTextPenBox
 
Methods inherited from class li.netcat.chart.util.TextPart
getTextLook, setTextLook
 
Methods inherited from class li.netcat.chart.util.AbstractPart
getChart, getPerspective, invalidate, setChart, setPerspective
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectInscribePart

public DirectInscribePart(GraphPart graphPart)
Constructs a new DirectInscribePart that tags the given graph part.

Parameters:
graphPart - The part that gets tagged, might also be null.
Method Detail

getTagConstraints

public TagConstraints getTagConstraints(java.awt.Graphics g)
Description copied from class: TagPart
Subclasses must implement this method to report the tag constraints that do the first displacements.

Specified by:
getTagConstraints in class TagPart
Parameters:
g - The relevant graphics object.
Returns:
The constraints that define where to place the tag labels.

ChartCat 1.2

Copyright 2003 - 2005 NetCat Inc.. All rights reserved. Feedback

Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print, Chart,Charting,Charts,Java,Java Chart,Java Charting,Java Charts,Chart Java,Charts Java,3D,3D Chart,3Dchart,Graph,Graphs,Chart Graph,Java Graph,Diagram,Diagrams,Java Diagram,Java Diagrams,Curve,Curves,Bar Chart,Pie Chart,Line Chart,Area Chart,Bar Graph,Pie Graph,Line Graph,Java Diagram,Chart Diagram,Package,Library,Chart Library,Chart Engine,Chart Package,Graph Package,Paint,Support,Graphic,Graphics,Print