diff --git a/build.xml b/build.xml index b8fe200..3adc6ca 100644 --- a/build.xml +++ b/build.xml @@ -124,7 +124,7 @@ @@ -308,4 +308,4 @@ - \ No newline at end of file + diff --git a/src/prefuse/action/assignment/DataColorAction.java b/src/prefuse/action/assignment/DataColorAction.java index d731aa9..8473dcd 100644 --- a/src/prefuse/action/assignment/DataColorAction.java +++ b/src/prefuse/action/assignment/DataColorAction.java @@ -151,6 +151,15 @@ public void setDataType(int type) { public int getScale() { return m_scale; } + + /** + * Set the palette this DataColorAction uses to assign colors. + * @param array of RGB values + */ + public void setPalette(int[] palette) { + m_palette = palette; + setup(); + } /** * Set the scale (linear, square root, or log) to use for encoding color diff --git a/src/prefuse/action/layout/AxisLabelLayout.java b/src/prefuse/action/layout/AxisLabelLayout.java index 397eaab..636e91e 100644 --- a/src/prefuse/action/layout/AxisLabelLayout.java +++ b/src/prefuse/action/layout/AxisLabelLayout.java @@ -594,4 +594,12 @@ protected VisualTable getTable() { } } + /** + * Returns whether this AxisLabelLayout + * manages an X or Y axis + */ + protected int getAxis() { + return m_axis; + } + } // end of class AxisLabels diff --git a/src/prefuse/render/AxisRenderer.java b/src/prefuse/render/AxisRenderer.java index 7fe2e89..d6d477d 100644 --- a/src/prefuse/render/AxisRenderer.java +++ b/src/prefuse/render/AxisRenderer.java @@ -151,7 +151,7 @@ public void render(Graphics2D g, VisualItem item) { String str = item.getString(VisualItem.LABEL); AffineTransform origTransform = g.getTransform(); AffineTransform transform = this.getTransform(item); - if ( transform != null ) g.setTransform(transform); + if ( transform != null ) g.transform(transform); g.setFont(item.getFont()); g.setColor(ColorLib.getColor(item.getTextColor()));