ChartCat 1.2

li.netcat.chart.util
Class PolarInscribePart

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.PolarInscribePart
All Implemented Interfaces:
Part

public class PolarInscribePart
extends InscribePart

Represents a round inscription that looks for example like this:

It can be used to tag a polar 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.

Be aware that this part might take a lot of space and use a lot of lines depending on the number of data elements.

Author:
Arthur Marxer

Field Summary
 
Fields inherited from class li.netcat.chart.util.AbstractPart
BACKGROUND, FOREGROUND, PERSPECTIVE
 
Constructor Summary
PolarInscribePart(PolarGraphPart polarGraphPart)
          Constructs a new PolarInscribePart that tags the given graph part.
 
Method Summary
 PolarGraphPart getPolarGraphPart()
          Returns the polar graph part that gets decorated by this tag part.
 TagConstraints getTagConstraints(java.awt.Graphics g)
          Subclasses must implement this method to report the tag constraints that do the first displacements.
 void setGraphPart(GraphPart graphPart)
          This overridden method makes sure, that only polar graph parts are set.
 void setPolarGraphPart(PolarGraphPart polarGraphPart)
          Sets the polar graph part that gets decorated by this tag part.
 
Methods inherited from class li.netcat.chart.util.InscribePart
getCrosswisePosition, getCrosswiseShift, getGraphPart, getLengthwisePosition, getLengthwiseShift, getTags, 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

PolarInscribePart

public PolarInscribePart(PolarGraphPart polarGraphPart)
Constructs a new PolarInscribePart that tags the given graph part.

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

getPolarGraphPart

public PolarGraphPart getPolarGraphPart()
Returns the polar graph part that gets decorated by this tag part.

Returns:
The graph part, might also be null.

setPolarGraphPart

public void setPolarGraphPart(PolarGraphPart polarGraphPart)
Sets the polar graph part that gets decorated by this tag part.

Parameters:
polarGraphPart - The polar graph part or null.

setGraphPart

public void setGraphPart(GraphPart graphPart)
This overridden method makes sure, that only polar graph parts are set. It calls
   setPolarGraphPart((PolarGraphPart)graphPart);
 

Overrides:
setGraphPart in class InscribePart
Parameters:
graphPart - The polar graph part or null.

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